about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2019-11-09 15:23:16 +0100
committervan Hauser <vh@thc.org>2019-11-09 15:23:16 +0100
commit58a18ea50bb5e73ce43e73151bdaa893fb7e2e84 (patch)
tree4401b5606ae7ac993e3de8accbfadffd8d0c5078
parent9d8458bb6db0bbb41ee760799aef592e00300ed6 (diff)
downloadafl++-58a18ea50bb5e73ce43e73151bdaa893fb7e2e84.tar.gz
not all sysctl are in /sbin, e.g. with busybox
-rwxr-xr-xtest/test.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh
index 679a514e..98482d05 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -64,6 +64,8 @@ RESET="\\033[0m"
 
 MEM_LIMIT=150
 
+export PATH=$PATH:/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin:/usr/local/bin
+
 $ECHO "${RESET}${GREY}[*] starting afl++ test framework ..."
 
 $ECHO "$BLUE[*] Testing: ${AFL_GCC}, afl-showmap and afl-fuzz"
@@ -99,7 +101,7 @@ test -e ../${AFL_GCC} -a -e ../afl-showmap -a -e ../afl-fuzz && {
   }
   # now we want to be sure that afl-fuzz is working  
   # make sure core_pattern is set to core on linux
-  (test "$(uname -s)" = "Linux" && test "$(/sbin/sysctl kernel.core_pattern)" != "kernel.core_pattern = core" && {
+  (test "$(uname -s)" = "Linux" && test "$(sysctl kernel.core_pattern)" != "kernel.core_pattern = core" && {
     $ECHO "$YELLOW[!] we should not run afl-fuzz with enabled core dumps. Run 'sudo sh afl-system-config'.$RESET"
     true
   }) ||