diff options
| author | Dmitry Vyukov <dvyukov@google.com> | 2012-05-14 15:25:35 +0000 |
|---|---|---|
| committer | Dmitry Vyukov <dvyukov@google.com> | 2012-05-14 15:25:35 +0000 |
| commit | d004b99cc608f038794d534bb26a02e551da5c07 (patch) | |
| tree | 35d59c5571032ef93f3df5828eba474151601a8e | |
| parent | 066fba1a822e881fbe7c6e01988fcba7936f283f (diff) | |
| download | bcm5719-llvm-d004b99cc608f038794d534bb26a02e551da5c07.tar.gz bcm5719-llvm-d004b99cc608f038794d534bb26a02e551da5c07.zip | |
tsan: fix output_tests script to actually verify tests results
llvm-svn: 156764
| -rwxr-xr-x | compiler-rt/lib/tsan/output_tests/test_output.sh | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/compiler-rt/lib/tsan/output_tests/test_output.sh b/compiler-rt/lib/tsan/output_tests/test_output.sh index e9ad57e2a16..bd9cd915876 100755 --- a/compiler-rt/lib/tsan/output_tests/test_output.sh +++ b/compiler-rt/lib/tsan/output_tests/test_output.sh @@ -1,6 +1,6 @@ #!/bin/bash -ulimit -s 8192; +ulimit -s 8192 set -e # fail on any error ROOTDIR=$(dirname $0)/.. @@ -10,11 +10,8 @@ CC=clang CXX=clang++ # TODO: add testing for all of -O0...-O3 -CFLAGS="-fthread-sanitizer -fPIE -O1 -g -fno-builtin -Wall -Werror=return-type" +CFLAGS="-fthread-sanitizer -fPIE -O1 -g -fno-builtin -Wall" LDFLAGS="-pie -lpthread -ldl $ROOTDIR/rtl/libtsan.a" -if [ "$LLDB" != "" ]; then - LDFLAGS+=" -L$LLDB -llldb" -fi test_file() { SRC=$1 @@ -23,9 +20,8 @@ test_file() { OBJ=$SRC.o EXE=$SRC.exe $COMPILER $SRC $CFLAGS -c -o $OBJ - # Link with CXX, because lldb and suppressions require C++. - $CXX $OBJ $LDFLAGS -o $EXE - RES=$(LD_LIBRARY_PATH=$LLDB TSAN_OPTIONS="atexit_sleep_ms=0" $EXE 2>&1 || true) + $COMPILER $OBJ $LDFLAGS -o $EXE + RES=$(TSAN_OPTIONS="atexit_sleep_ms=0" $EXE 2>&1 || true) if [ "$3" != "" ]; then printf "%s\n" "$RES" fi @@ -45,7 +41,7 @@ if [ "$1" == "" ]; then case $c in *.c) COMPILER=$CC esac - test_file $c $COMPILER & + test_file $c $COMPILER done wait else |

