From b6429b6632ba8b82fc33fdc4a3c6227eab390f53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Storsj=C3=B6?= Date: Wed, 14 Sep 2022 09:45:53 +0300 Subject: [PATCH] run-tests: Move resetting of the TESTS_EXTRA variable earlier in the loop A test that was added to TESTS_EXTRA in e934c04ef4621fcf98054e96dfc3ffd246c60e27 wasn't actually ever executed; this makes it be executed as expected. --- run-tests.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/run-tests.sh b/run-tests.sh index eb438b1..e3fa4b4 100755 --- a/run-tests.sh +++ b/run-tests.sh @@ -101,6 +101,7 @@ for arch in $ARCHS; do esac TEST_DIR="$arch" + TESTS_EXTRA="" [ -z "$CLEAN" ] || rm -rf $TEST_DIR # A leftover libc++.dll from a previous round will cause the linker to find it (and error out) instead of # locating libc++.dll.a in a later include directory. @@ -127,7 +128,6 @@ for arch in $ARCHS; do for test in $TESTS_C_LINK_DLL; do $arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test.exe -L$TEST_DIR -l${test%-main}-lib done - TESTS_EXTRA="" for test in $TESTS_C_NO_BUILTIN; do $arch-w64-mingw32-clang $test.c -o $TEST_DIR/$test-no-builtin.exe -fno-builtin TESTS_EXTRA="$TESTS_EXTRA $test-no-builtin"