Changeset 5432955 in git


Ignore:
Timestamp:
2006-07-16T09:12:55Z (14 years ago)
Author:
Xuefer <xuefer@…>
Branches:
1.1, 1.2, 1.3, 3.0, 3.1, 3.2, master, trunk
Children:
f7c7805
Parents:
62eb321
Message:

try to show both count/size assert before abort

git-svn-id: svn://svn.lighttpd.net/xcache/trunk@93 c26eb9a1-5813-0410-bd6c-c2e55f420ca7

File:
1 edited

Legend:

Unmodified
Added
Removed
  • processor/struct.m4

    rf70a176 r5432955  
    7373                if (done_count != assert_count) {
    7474                    fprintf(stderr
    75                         , "count assertion failed at %s `#'%d FUNC_NAME`' : unexpected %d - expected %d = %d != 0\n"
     75                        , "count assertion failed at %s `#'%d FUNC_NAME`' : unexpected:%d - expecting:%d = %d != 0\n"
    7676                        , __FILE__, __LINE__
    7777                        , done_count, assert_count, done_count - assert_count
    7878                        );
    79                     abort();
    8079                }
    8180                if (done_size != assert_size) {
    8281                    fprintf(stderr
    83                         , "size assertion failed at %s `#'%d FUNC_NAME`' : %d - %d = %d != 0\n"
     82                        , "size assertion failed at %s `#'%d FUNC_NAME`' : unexpected:%d - expecting:%d = %d != 0\n"
    8483                        , __FILE__, __LINE__
    8584                        , done_size, assert_size, done_size - assert_size
    8685                        );
    87                     abort();
     86                }
     87                if (done_count != assert_count || done_size != assert_size) {
     88                    assert(0);
    8889                }
    8990                /* }}} */
Note: See TracChangeset for help on using the changeset viewer.