about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-12-09 13:15:31 +0100
committerhexcoder- <heiko@hexco.de>2019-12-09 13:15:31 +0100
commitb8b0ba004b8e51660a3416ab765bbecfe93e7bfb (patch)
tree1000eec287da340351e0a3765c41682f2fd38223
parent41165c0e68b91b1b6420d721f6a8f6dd6eab23cb (diff)
downloadafl++-b8b0ba004b8e51660a3416ab765bbecfe93e7bfb.tar.gz
fix tests on MacOS, radamsa test could not find an instrumented
binary.
-rwxr-xr-xtest/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh
index 6cc633c0..26f01597 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -434,13 +434,13 @@ rm -f test-compcov
 test -e ../libradamsa.so && {
   test -e test-instr.plain || ../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
   test -e test-instr.plain || ../afl-gcc-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
-  test -e test-instr.plain || ../afl-gcc -o test-instr.plain ../test-instr.c > /dev/null 2>&1
+  test -e test-instr.plain || ../${AFL_GCC} -o test-instr.plain ../test-instr.c > /dev/null 2>&1
   test -e test-instr.plain && {
     mkdir -p in
     printf 1 > in/in
     $ECHO "$GREY[*] running afl-fuzz with radamsa, this will take approx 10 seconds"
     {
-      ../afl-fuzz -RR -V10 -m ${MEM_LIMIT} -i in -o out -- ./test-instr.plain >>errors 2>&1
+      ../afl-fuzz -RR -V10 -m ${MEM_LIMIT} -i in -o out -- ./test-instr.plain
     } >>errors 2>&1
     test -n "$( ls out/queue/id:000001* 2> /dev/null )" && {
       $ECHO "$GREEN[+] libradamsa performs good - and very slow - mutations"