summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--build_and_test.sh16
1 files changed, 8 insertions, 8 deletions
diff --git a/build_and_test.sh b/build_and_test.sh
index 3e18d8c..627e062 100644
--- a/build_and_test.sh
+++ b/build_and_test.sh
@@ -80,14 +80,14 @@ fi
$COMPILE ${FLAGS} \
${FLAG_OBJ}"build/kit${OBJ_POSTFIX}" \
"source/kit/_static.c"
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
$COMPILE ${FLAGS} \
${FLAG_OBJ}"build/kit_test${OBJ_POSTFIX}" \
"source/kit_test/_static.c"
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
@@ -97,7 +97,7 @@ $COMPILE ${FLAGS} \
"build/kit_test${OBJ_POSTFIX}" \
"source/tests/_static.c" \
${LINK_FLAGS}
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
@@ -107,7 +107,7 @@ $COMPILE ${FLAGS} \
"build/kit_test${OBJ_POSTFIX}" \
"source/tests/test_too_many_assertions.c" \
${LINK_FLAGS}
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
@@ -117,7 +117,7 @@ $COMPILE ${FLAGS} \
"build/kit_test${OBJ_POSTFIX}" \
"source/tests/test_too_many_tests.c" \
${LINK_FLAGS}
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
@@ -127,7 +127,7 @@ $COMPILEPP ${FLAGS} \
"build/kit_test${OBJ_POSTFIX}" \
"source/tests/test_cpp.cpp" \
${LINK_FLAGS}
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
@@ -137,7 +137,7 @@ $COMPILEPP ${FLAGS} \
"build/kit_test${OBJ_POSTFIX}" \
"source/tests/test_signals.cpp" \
${LINK_FLAGS}
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
exit 1
fi
@@ -147,7 +147,7 @@ echo ""
STATUS=0
./build/kit_test_suite
-if [ ! $? -eq 0 ]; then
+if [ $? -ne 0 ]; then
STATUS=1
fi