]> git.ipfire.org Git - thirdparty/curl.git/commit
unit tests: use the unit test infrastructure better
authorDan Fandrich <dan@coneharvesters.com>
Sat, 1 Apr 2023 15:59:38 +0000 (08:59 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Sat, 1 Apr 2023 15:59:38 +0000 (08:59 -0700)
commita13ef31d0fbbf98120b711746bd8802acaba6b0a
treec5f0aa278df68c65498cc861ec3048253c5a123d
parent419a745da65df65ed68b4c141a72b222d37c8e32
unit tests: use the unit test infrastructure better

Allow UNITTEST_STOP to return the error code, use the fail & abort
macros to indicate test failure and return success instead of fail if
the unit test can't test anything because of missing features at
compile-time.  A couple of tests could never fail because they were
overriding the failure return code.
tests/unit/unit1608.c
tests/unit/unit1621.c
tests/unit/unit1650.c
tests/unit/unit1655.c
tests/unit/unit1660.c
tests/unit/unit2601.c
tests/unit/unit3200.c