about summary refs log tree commit diff
path: root/test/test-gcc-plugin.sh
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-12-26 01:49:31 +0100
committervanhauser-thc <vh@thc.org>2021-12-26 01:49:31 +0100
commit146eb32c3116cac81870b99750306a6df5e8061c (patch)
treef80152fc2fd197f77d1330d98673c20e66f3c626 /test/test-gcc-plugin.sh
parent550dc989b380f408d144d2db3bdcc69bff21d369 (diff)
downloadafl++-146eb32c3116cac81870b99750306a6df5e8061c.tar.gz
make tests working on macos
Diffstat (limited to 'test/test-gcc-plugin.sh')
-rwxr-xr-xtest/test-gcc-plugin.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/test-gcc-plugin.sh b/test/test-gcc-plugin.sh
index 50d83e40..95ae9c47 100755
--- a/test/test-gcc-plugin.sh
+++ b/test/test-gcc-plugin.sh
@@ -40,7 +40,7 @@ test -e ../afl-gcc-fast -a -e ../afl-compiler-rt.o && {
   }
 
   test -e test-compcov.harden.gccpi && test_compcov_binary_functionality ./test-compcov.harden.gccpi && {
-    grep -Eq$GREPAOPTION 'stack_chk_fail|fstack-protector-all|fortified' test-compcov.harden.gccpi > /dev/null 2>&1 && {
+    nm test-compcov.harden.gccpi | grep -Eq 'stack_chk_fail|fstack-protector-all|fortified' > /dev/null 2>&1 && {
       $ECHO "$GREEN[+] gcc_plugin hardened mode succeeded and is working"
     } || {
       $ECHO "$RED[!] gcc_plugin hardened mode is not hardened"