diff options
author | van Hauser <vh@thc.org> | 2021-01-21 14:17:08 +0100 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2021-01-21 14:17:08 +0100 |
commit | 3903dac1f5c0ce40965d40c956d79e46463654ea (patch) | |
tree | 1a5b2fecbc9415bce04f148778a6405a59650485 | |
parent | 1ee0946f692927eaaed9c8db1d006d8eb38631c3 (diff) | |
download | afl++-3903dac1f5c0ce40965d40c956d79e46463654ea.tar.gz |
fix gcc plugin test
-rwxr-xr-x | test/test-gcc-plugin.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test-gcc-plugin.sh b/test/test-gcc-plugin.sh index 0157d89f..58000e92 100755 --- a/test/test-gcc-plugin.sh +++ b/test/test-gcc-plugin.sh @@ -19,14 +19,14 @@ test -e ../afl-gcc-fast -a -e ../afl-compiler-rt.o && { } || { $ECHO "$GREEN[+] gcc_plugin instrumentation present and working correctly" TUPLES=`echo 0|../afl-showmap -m ${MEM_LIMIT} -o /dev/null -- ./test-instr.plain.gccpi 2>&1 | grep Captur | awk '{print$3}'` - test "$TUPLES" -gt 2 -a "$TUPLES" -lt 9 && { + test "$TUPLES" -gt 1 -a "$TUPLES" -lt 9 && { $ECHO "$GREEN[+] gcc_plugin run reported $TUPLES instrumented locations which is fine" } || { $ECHO "$RED[!] gcc_plugin instrumentation produces a weird numbers: $TUPLES" $ECHO "$YELLOW[-] this is a known issue in gcc, not afl++. It is not flagged as an error because travis builds would all fail otherwise :-(" #CODE=1 } - test "$TUPLES" -lt 3 && SKIP=1 + test "$TUPLES" -lt 2 && SKIP=1 true } } || { |