fix test.sh
This commit is contained in:
parent
f9316771af
commit
00cc9d8cc2
4
test.sh
4
test.sh
@ -28,12 +28,14 @@ echo -e "#include <stdio.h>\nint main(void){return 0;}" > test.c
|
|||||||
|
|
||||||
$CC test.c -o $out_name
|
$CC test.c -o $out_name
|
||||||
chmod +x $out_name
|
chmod +x $out_name
|
||||||
rm test.c $out_name
|
rm test.c
|
||||||
|
|
||||||
if ! ./$out_name; then
|
if ! ./$out_name; then
|
||||||
echo "[FAILED] Fix c compiler or headers..."
|
echo "[FAILED] Fix c compiler or headers..."
|
||||||
|
rm $out_name
|
||||||
exit 1
|
exit 1
|
||||||
|
|
||||||
|
rm $out_name
|
||||||
fi
|
fi
|
||||||
|
|
||||||
exit 0
|
exit 0
|
||||||
|
Loading…
Reference in New Issue
Block a user