• Show log

    Commit

  • Hash : 3a5f5178
    Author : Bruno Haible
    Date : 2024-05-18T21:32:01

    tests: Support showing all assertion failures, not just the first one.
    
    * tests/macros.h (CONTINUE_AFTER_ASSERT): New macro.
    (test_exit_status): New variable.
    (ASSERT, ASSERT_NO_STDIO): If CONTINUE_AFTER_ASSERT is 1, set
    test_exit_status instead of aborting.
    * tests/**/test-*.{c,h,cc} (main): Instead of exiting with exit code 0,
    exit with exit code test_exit_status.
    * tests/test-spawn-pipe-child.c: Undefine CONTINUE_AFTER_ASSERT.
    * tests/uninorm/test-nf*.c: Include macros.h.
    * tests/uninorm/test-u32-nf*-big.c: Likewise.
    * tests/random*.c: Define NO_MAIN_HERE.