]> git.ipfire.org Git - thirdparty/libbsd.git/commitdiff
test: Do not use /dev/null as compiler output file
authorGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 21:59:19 +0000 (23:59 +0200)
committerGuillem Jover <guillem@hadrons.org>
Mon, 17 Apr 2023 23:09:05 +0000 (01:09 +0200)
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
test/headers-system.sh

index be92eff5582b1ca2f13ace8fd3e89ca60b82fa10..176623e1c295615d8d23c41749b1eaada206946b 100755 (executable)
@@ -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
index 5ff051773ef70900e10b9885b2b60565dbbc35fc..458fbbb5fc16eb97b2601aaae35306b0b5e36f23 100755 (executable)
@@ -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