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.
This commit is contained in:
Guillem Jover 2023-04-17 23:59:19 +02:00
parent 426bf45278
commit 90b7f3aeba
2 changed files with 4 additions and 2 deletions

View File

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

View File

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