aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-01-20 12:56:55 +0100
committervan Hauser <vh@thc.org>2020-01-20 12:56:55 +0100
commit72058fdcbcdc707824bd4211ce528237afc1140e (patch)
tree1d2cdb44195cf97be32e1d3d520adb89b3753cef /test
parent274c8d7d3cff7ad61f2a57c7f69914a3948711d2 (diff)
downloadafl++-72058fdcbcdc707824bd4211ce528237afc1140e.tar.gz
another freebsd fix in test.sh
Diffstat (limited to 'test')
-rwxr-xr-xtest/test.sh12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/test.sh b/test/test.sh
index 97cc1511..23d98278 100755
--- a/test/test.sh
+++ b/test/test.sh
@@ -179,11 +179,13 @@ test "$SYS" = "i686" -o "$SYS" = "x86_64" -o "$SYS" = "amd64" && {
$ECHO "$BLUE[*] Testing: llvm_mode"
test -e ../afl-clang-fast -a -e ../split-switches-pass.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
+ }
../afl-clang-fast -o test-instr.plain ../test-instr.c > /dev/null 2>&1
AFL_HARDEN=1 ../afl-clang-fast -o test-compcov.harden test-compcov.c > /dev/null 2>&1
test -e test-instr.plain && {