aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2025-09-14 00:03:03 +0900
committernsfisis <nsfisis@gmail.com>2025-09-14 00:03:03 +0900
commitec63d7d6d2f123239ba436ffcb2638f27f3b7d59 (patch)
tree12f079ae35713839037cf374680c180ac9a8df73 /tests
parent4ef1add4c20d4b44aa43d0f3a102ee173b7a5e5b (diff)
downloadducc-ec63d7d6d2f123239ba436ffcb2638f27f3b7d59.tar.gz
ducc-ec63d7d6d2f123239ba436ffcb2638f27f3b7d59.tar.zst
ducc-ec63d7d6d2f123239ba436ffcb2638f27f3b7d59.zip
feat: use Nix-provided glibc headers
Diffstat (limited to 'tests')
-rw-r--r--tests/helpers.sh10
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