Still run the test, just don't stop when it is failing

This commit is contained in:
Sylvestre Ledru 2018-10-11 17:27:23 +02:00
parent df02d472ee
commit 1b53da8964

View File

@ -176,12 +176,17 @@ if ! ./a.out 2>&1 | grep -q -E "(Test unit written|PreferSmall)"; then
echo "fuzzer"
exit 42
fi
# fails on 32 bit, seems a real BUG in the package, using 64bit static libs?
#clang-$VERSION -fsanitize=fuzzer test_fuzzer.cc
#if ! ./a.out 2>&1 | grep -q -E "(Test unit written|PreferSmall)"; then
# echo "fuzzer"
# exit 42
#fi
LANG=C clang-$VERSION -fsanitize=fuzzer test_fuzzer.cc &> foo.log
if ! grep "No such file or directory" foo.log; then
# This isn't failing on 64, so, look at the results
if ! ./a.out 2>&1 | grep -q -E "(Test unit written|PreferSmall)"; then
echo "fuzzer"
exit 42
fi
fi
echo 'int main() {
int a=0;