From 90b7f3aeba2805e06181286b442429b136540214 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 17 Apr 2023 23:59:19 +0200 Subject: [PATCH] test: Do not use /dev/null as compiler output file Some ld(1) implementations, such as the one on AIX, do not support using /dev/null as the output filename for the compiled object. Use an actual filename that we will then clean up. --- test/headers-overlay.sh | 3 ++- test/headers-system.sh | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/test/headers-overlay.sh b/test/headers-overlay.sh index be92eff..176623e 100755 --- a/test/headers-overlay.sh +++ b/test/headers-overlay.sh @@ -18,8 +18,9 @@ int main() { return 0; } SOURCE echo "testing header $inc" - run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o /dev/null + run $CC -isystem "$incdir" $CPPFLAGS headers-overlay-gen.c -o headers-overlay echo + rm -f headers-overlay rm -f headers-overlay-gen* done diff --git a/test/headers-system.sh b/test/headers-system.sh index 5ff0517..458fbbb 100755 --- a/test/headers-system.sh +++ b/test/headers-system.sh @@ -17,8 +17,9 @@ int main() { return 0; } SOURCE echo "testing header $inc" - run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o /dev/null + run $CC -isystem "$incdir" $CPPFLAGS headers-system-gen.c -o headers-system echo + rm -f headers-system rm -f headers-system-gen.* done