diff options
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 |
