diff options
| author | nsfisis <nsfisis@gmail.com> | 2025-09-14 00:03:03 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2025-09-14 00:03:03 +0900 |
| commit | ec63d7d6d2f123239ba436ffcb2638f27f3b7d59 (patch) | |
| tree | 12f079ae35713839037cf374680c180ac9a8df73 /tests/helpers.sh | |
| parent | 4ef1add4c20d4b44aa43d0f3a102ee173b7a5e5b (diff) | |
| download | ducc-ec63d7d6d2f123239ba436ffcb2638f27f3b7d59.tar.gz ducc-ec63d7d6d2f123239ba436ffcb2638f27f3b7d59.tar.zst ducc-ec63d7d6d2f123239ba436ffcb2638f27f3b7d59.zip | |
feat: use Nix-provided glibc headers
Diffstat (limited to 'tests/helpers.sh')
| -rw-r--r-- | tests/helpers.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tests/helpers.sh b/tests/helpers.sh index a69e213..adc9511 100644 --- a/tests/helpers.sh +++ b/tests/helpers.sh @@ -1,7 +1,7 @@ function test_exit_code() { cat > main.c - "$ducc" -o a.out main.c + "$ducc" "${CFLAGS:-}" -o a.out main.c set +e ./a.out exit_code=$? @@ -18,7 +18,7 @@ function test_exit_code() { function test_diff() { cat > main.c - "$ducc" -o a.out main.c + "$ducc" "${CFLAGS:-}" -o a.out main.c if [[ ! -f input ]]; then touch input fi @@ -37,7 +37,7 @@ function test_compile_error() { cat > main.c set +e - "$ducc" main.c > /dev/null 2> output + "$ducc" "${CFLAGS:-}" main.c > /dev/null 2> output exit_code=$? set -e @@ -52,14 +52,14 @@ function test_compile_error() { function test_cpp() { cat > main.c - "$ducc" -E main.c > output + "$ducc" "${CFLAGS:-}" -E main.c > output diff -u -Z expected output } function test_example() { filename="../../../examples/$1.c" - "$ducc" -o a.out "$filename" + "$ducc" "${CFLAGS:-}" -o a.out "$filename" if [[ ! -f input ]]; then touch input fi |
