quakeforge/tools/qfcc/test/build-compile-fail-run
Bill Currie 0542daacdf Create more double related tests
Including catching warnings :) (yay -Werror)
2020-02-15 23:49:12 +09:00

15 lines
145 B
Bash
Executable file

#! /bin/sh
script=$1
shift
cat > $script <<EOF
#! /bin/sh
# compile must fail
$@
if test \$? != 1; then
exit 1
fi
exit 0
EOF
chmod +x $script