]> git.ipfire.org Git - thirdparty/curl.git/commit
tests: make first.c the same for both lib tests and unit tests
authorDan Fandrich <dan@coneharvesters.com>
Mon, 13 Mar 2023 01:56:22 +0000 (18:56 -0700)
committerDan Fandrich <dan@coneharvesters.com>
Mon, 13 Mar 2023 02:14:59 +0000 (19:14 -0700)
commit0cbfe32fb1f55dae154cb5fb84c1af97318d2ebe
treee46a828205a34993d71e4a0861b5441e71b992a6
parent4e4a082eff1dd82b8b041879002fcca9e858c8c1
tests: make first.c the same for both lib tests and unit tests

The only difference used to be global variable used in unittest tests.
After cb7ed5a removed individual flag overrides for the unittests, first.c
was no longer recompiled for unit tests to include the flag, so whether it
worked or gave a link error depended on whether it was compiled in
libtest or unittest first. This way also speeds up the build by
eliminating 40 identical compile invocations.

Fixes #10749
tests/libtest/first.c
tests/libtest/test.h