From 28314632bddab8fc41e07b9e4a2bb9548ee3f97e Mon Sep 17 00:00:00 2001 From: van Hauser Date: Wed, 8 Apr 2020 18:28:35 +0200 Subject: fix travis - heiko test your changes on linux pls ;) --- test/test.sh | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/test.sh b/test/test.sh index 871345f0..0666ca36 100755 --- a/test/test.sh +++ b/test/test.sh @@ -616,7 +616,6 @@ test -e ../libdislocator.so && { rm -f test-compcov test -e ../libradamsa.so && { # on FreeBSD need to set AFL_CC - test `uname -s` = 'FreeBSD' && { if type clang >/dev/null; then export AFL_CC=`command -v clang` @@ -653,6 +652,16 @@ test -e ../libradamsa.so && { INCOMPLETE=1 } +test -z "$AFL_CC" && { + if type gcc >/dev/null; then + export AFL_CC=gcc + else + if type clang >/dev/null; then + export AFL_CC=clang + fi + fi +} + $ECHO "$BLUE[*] Testing: qemu_mode" test -e ../afl-qemu-trace && { gcc -pie -fPIE -o test-instr ../test-instr.c -- cgit 1.4.1