diff options
author | hexcoder- <heiko@hexco.de> | 2020-01-19 12:25:32 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-01-19 12:25:32 +0100 |
commit | e7770a70023381bc7ff96b1d346b0ff9741f62de (patch) | |
tree | f8081c86511eb916ff36079a935675c4d8d12e8b | |
parent | 99fe0becd45581042fab242add4a209d4a1ad887 (diff) | |
download | afl++-e7770a70023381bc7ff96b1d346b0ff9741f62de.tar.gz |
make exporting AFL_CC FreeBSD specific, since it seems to harm
the libradamsa test on travis/arm64
-rwxr-xr-x | test/test.sh | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/test/test.sh b/test/test.sh index c770c1b7..43b278b4 100755 --- a/test/test.sh +++ b/test/test.sh @@ -458,11 +458,14 @@ test -e ../libdislocator.so && { rm -f test-compcov test -e ../libradamsa.so && { # on FreeBSD need to set AFL_CC - if which clang >/dev/null; then - export AFL_CC=`which clang` - else - export AFL_CC=`$LLVM_CONFIG --bindir`/clang - fi + + test `uname -s` = 'FreeBSD' && { + if which clang >/dev/null; then + export AFL_CC=`which clang` + else + export AFL_CC=`$LLVM_CONFIG --bindir`/clang + fi + } test -e test-instr.plain || ../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1 test -e test-instr.plain || ../afl-gcc-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1 test -e test-instr.plain || ../${AFL_GCC} -o test-instr.plain ../test-instr.c > /dev/null 2>&1 |