about summary refs log tree commit diff
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2019-09-28 16:39:46 +0200
committerhexcoder- <heiko@hexco.de>2019-09-28 16:39:46 +0200
commit783e5fa42f4560c6f82ea4c2f51719e9a1219548 (patch)
tree45742f15de64a41ce891e91148565d0ac5661060
parent9c31196610307839085654273b36841af26d6cdd (diff)
downloadafl++-783e5fa42f4560c6f82ea4c2f51719e9a1219548.tar.gz
As usual I forgot the second usage test for afl-fuzz
-rwxr-xr-xtest/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh
index ea69db8d..1e094f3c 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -125,12 +125,12 @@ test -e ../afl-clang-fast && {
     rm -f test-compcov.harden
   } || $ECHO "$RED[!] llvm_mode hardened mode compilation failed"
   # now we want to be sure that afl-fuzz is working  
-  (test "$(uname -s)" = "Linux" -a "$(sysctl kernel.core_pattern)" != "kernel.core_pattern = core" && {
+  (test "$(uname -s)" = "Linux" && test "$(sysctl kernel.core_pattern)" != "kernel.core_pattern = core" && {
     $ECHO "$RED[!] we cannot run afl-fuzz with enabled core dumps. Run 'sudo sh afl-system-config'.$RESET"
     true
   }) ||
   # make sure crash reporter is disabled on Mac OS X
-  (test "$(uname -s)" = "Darwin" -a $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') && {
+  (test "$(uname -s)" = "Darwin" && test $(launchctl list 2>/dev/null | grep -q '\.ReportCrash$') && {
     $ECHO "$RED[!] we cannot run afl-fuzz with enabled crash reporter. Run 'sudo sh afl-system-config'.$RESET"
     true
   }) || {