about summary refs log tree commit diff
path: root/test/test-pre.sh
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2022-01-11 12:20:35 +0100
committerGitHub <noreply@github.com>2022-01-11 12:20:35 +0100
commit10dae419d6e3ebc38f53840c5abfe98e9c901217 (patch)
tree352576e19c8a504c40ea58dbb141056762901a69 /test/test-pre.sh
parent74a8f145e09d0361d8f576eb3f2e8881b6116f18 (diff)
parentd2715336a54635bb6e617a2e739c0ad5fe51d28d (diff)
downloadafl++-10dae419d6e3ebc38f53840c5abfe98e9c901217.tar.gz
Merge pull request #1236 from AFLplusplus/dev
push to stable
Diffstat (limited to 'test/test-pre.sh')
-rwxr-xr-xtest/test-pre.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test-pre.sh b/test/test-pre.sh
index e12d95be..b8b286e5 100755
--- a/test/test-pre.sh
+++ b/test/test-pre.sh
@@ -105,14 +105,14 @@ test -n "$TRAVIS_OS_NAME" && {
   export ASAN_OPTIONS=detect_leaks=0:allocator_may_return_null=1:abort_on_error=1:symbolize=1
 }
 
-export AFL_LLVM_INSTRUMENT=AFL
+#export AFL_LLVM_INSTRUMENT=AFL # AFL mode makes dlopen not link on macos
 
 # on OpenBSD we need to work with llvm from /usr/local/bin
 test -e /usr/local/bin/opt && {
-  export PATH="/usr/local/bin:${PATH}"
+  test `uname -s` = 'Darwin' || export PATH="/usr/local/bin:${PATH}"
 }
 # on MacOS X we prefer afl-clang over afl-gcc, because
-# afl-gcc does not work there
+# afl-gcc does not work there (it is a symlink from clang)
 test `uname -s` = 'Darwin' -o `uname -s` = 'FreeBSD' && {
   AFL_GCC=afl-clang
 } || {