about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-04-09 18:11:39 +0000
committerhexcoder- <heiko@hexco.de>2020-04-09 18:11:39 +0000
commitfbf5e08425abcb0db2866067c4ede8134b8f9e98 (patch)
treee58e8941895961a74e7c9feafa5a95d5a9bec331 /test
parentdf5c2647544f17a17f0eac78072cf0ebafa0ba7c (diff)
downloadafl++-fbf5e08425abcb0db2866067c4ede8134b8f9e98.tar.gz
merge PR#306 from neoni (thanks), silence test when bash is not found
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test.sh b/test/test.sh
index c673337e..bc89ff43 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -185,7 +185,7 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" -o "$SYS" = "i86pc
     esac
     rm -f in2/in*
     export AFL_QUIET=1
-    if type bash >/dev/null ; then {
+    if command -v bash >/dev/null ; then {
       AFL_PATH=`pwd`/.. ../afl-cmin.bash -m ${MEM_LIMIT} -i in -o in2 -- ./test-instr.plain >/dev/null
       CNT=`ls in2/* 2>/dev/null | wc -l`
       case "$CNT" in