|
@@ -14,7 +14,7 @@ function echo_success {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
function echo_failed {
|
|
function echo_failed {
|
|
|
- echo -e '\E[27;31m'"\033[1merror\033[0m"
|
|
|
|
|
|
|
+ echo -e '\E[27;31m'"\033[1mfailed\033[0m"
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
# The real tests: compile a file, run it, and compare the output to the
|
|
# The real tests: compile a file, run it, and compare the output to the
|
|
@@ -118,7 +118,7 @@ function check_return {
|
|
|
if $CIVCC $CFLAGS $file -o tmp.s > /dev/null 2>&1
|
|
if $CIVCC $CFLAGS $file -o tmp.s > /dev/null 2>&1
|
|
|
then
|
|
then
|
|
|
if [ $expect_failure -eq 1 ]; then
|
|
if [ $expect_failure -eq 1 ]; then
|
|
|
- echo failed
|
|
|
|
|
|
|
+ echo_failed
|
|
|
failed_tests=$((failed_tests+1))
|
|
failed_tests=$((failed_tests+1))
|
|
|
else
|
|
else
|
|
|
echo_success
|
|
echo_success
|
|
@@ -127,7 +127,7 @@ function check_return {
|
|
|
if [ $expect_failure -eq 1 ]; then
|
|
if [ $expect_failure -eq 1 ]; then
|
|
|
echo_success
|
|
echo_success
|
|
|
else
|
|
else
|
|
|
- echo failed
|
|
|
|
|
|
|
+ echo_failed
|
|
|
failed_tests=$((failed_tests+1))
|
|
failed_tests=$((failed_tests+1))
|
|
|
fi
|
|
fi
|
|
|
fi
|
|
fi
|