fixed
This commit is contained in:
parent
18c5379148
commit
f9316771af
6
test.sh
6
test.sh
@ -24,16 +24,14 @@ fi
|
|||||||
#C
|
#C
|
||||||
out_name=$(mktemp XXXXXX)
|
out_name=$(mktemp XXXXXX)
|
||||||
|
|
||||||
echo "#include <stdio.h>" >> test.c
|
echo -e "#include <stdio.h>\nint main(void){return 0;}" > test.c
|
||||||
echo "int 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
|
rm test.c $out_name
|
||||||
|
|
||||||
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
|
||||||
|
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user