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.
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