[llvm-commits] [compiler-rt] r151042 - /compiler-rt/trunk/lib/asan/output_tests/test_output.sh
Alexey Samsonov
samsonov at google.com
Mon Feb 20 23:08:38 PST 2012
Author: samsonov
Date: Tue Feb 21 01:08:38 2012
New Revision: 151042
URL: http://llvm.org/viewvc/llvm-project?rev=151042&view=rev
Log:
AddressSanitizer: don't use /tmp for temporary file in output tests.
Modified:
compiler-rt/trunk/lib/asan/output_tests/test_output.sh
Modified: compiler-rt/trunk/lib/asan/output_tests/test_output.sh
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/output_tests/test_output.sh?rev=151042&r1=151041&r2=151042&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/output_tests/test_output.sh (original)
+++ compiler-rt/trunk/lib/asan/output_tests/test_output.sh Tue Feb 21 01:08:38 2012
@@ -8,7 +8,7 @@
FILE_CHECK=$3
CXXFLAGS="-mno-omit-leaf-frame-pointer -fno-omit-frame-pointer -fno-optimize-sibling-calls"
SYMBOLIZER=../scripts/asan_symbolize.py
-TMP_ASAN_REPORT=/tmp/asan_report
+TMP_ASAN_REPORT=asan_report.tmp
run_program() {
./$1 2>&1 | $SYMBOLIZER 2> /dev/null | c++filt > $TMP_ASAN_REPORT
@@ -18,6 +18,7 @@
check_program() {
run_program $1
$FILE_CHECK $2 --check-prefix=$3 < $TMP_ASAN_REPORT
+ rm -f $TMP_ASAN_REPORT
}
C_TEST=use-after-free
@@ -63,6 +64,7 @@
$FILE_CHECK $c.cc --check-prefix="Check-$OS" < $TMP_ASAN_REPORT
fi
rm ./$exe
+ rm ./$TMP_ASAN_REPORT
[ -e "$so" ] && rm ./$so
done
done
More information about the llvm-commits
mailing list