diff --git a/run_tests.sh b/run_tests.sh index 50b01a68..d9b19d5d 100644 --- a/run_tests.sh +++ b/run_tests.sh @@ -2,6 +2,12 @@ python3 prebuild.py SRC=$(find src/ -name "*.cpp") clang++ -std=c++17 --coverage -O1 -stdlib=libc++ -Wfatal-errors -o main src2/main.cpp $SRC -Iinclude -ldl python3 scripts/run_tests.py + +# if prev error exit +if [ $? -ne 0 ]; then + exit 1 +fi + rm -rf .coverage mkdir .coverage UNITS=$(find ./ -name "*.gcno") diff --git a/tests/99_bufan.py b/tests/99_bufan.py index 60302cbe..314dae30 100644 --- a/tests/99_bufan.py +++ b/tests/99_bufan.py @@ -32,7 +32,7 @@ import c c_int_1 = c.refl("int") c_struct_1 = c_int_1() -assert (c_int_1() == c_int_1()) == False +assert (c_int_1() == c_int_1()) assert (c_struct_1 == c_struct_1) == True # ------------------------------------------------