about summary refs log tree commit diff
path: root/test
diff options
context:
space:
mode:
authorAndrea Fioraldi <andreafioraldi@gmail.com>2019-10-25 14:02:38 +0200
committerAndrea Fioraldi <andreafioraldi@gmail.com>2019-10-25 14:02:38 +0200
commite7871b2c7675e0f6df4fbe1a8f53a23ed5d2024f (patch)
treec8665af55ac32ee97082d2c2d9b2d6cbec2c6d62 /test
parent644efa290582e76a9fb1dc42a7cfc782d628d3fe (diff)
parent7e9b6fe0aa820c8bce258eaa24d230ce96347d38 (diff)
downloadafl++-e7871b2c7675e0f6df4fbe1a8f53a23ed5d2024f.tar.gz
Merge branch 'master' of github.com:vanhauser-thc/AFLplusplus
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test.sh b/test/test.sh
index da0590ef..42ddf70b 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -271,9 +271,9 @@ test -e ../afl-gcc-fast && {
 } || $ECHO "$YELLOW[-] gcc_plugin not compiled, cannot test"
 
 $ECHO "$BLUE[*] Testing: shared library extensions"
-gcc -o test-compcov test-compcov.c > /dev/null 2>&1
+cc -o test-compcov test-compcov.c > /dev/null 2>&1
 test -e ../libtokencap.so && {
-  AFL_TOKEN_FILE=token.out LD_PRELOAD=../libtokencap.so ./test-compcov foobar > /dev/null 2>&1
+  AFL_TOKEN_FILE=token.out LD_PRELOAD=../libtokencap.so DYLD_INSERT_LIBRARIES=../libtokencap.so DYLD_FORCE_FLAT_NAMESPACE=1 ./test-compcov foobar > /dev/null 2>&1
   grep -q BUGMENOT token.out > /dev/null 2>&1 && {
     $ECHO "$GREEN[+] libtokencap did successfully capture tokens"
   } || $ECHO "$RED[!] libtokencap did not capture tokens"