OSDN Git Service

Get rid of even more "%T" expansions, see <https://reviews.llvm.org/D35396>.
authorKuba Mracek <mracek@apple.com>
Sun, 20 Aug 2017 17:05:22 +0000 (17:05 +0000)
committerKuba Mracek <mracek@apple.com>
Sun, 20 Aug 2017 17:05:22 +0000 (17:05 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311294 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Fuzzer/test/afl-driver-extra-stats.test
lib/Fuzzer/test/afl-driver-stderr.test
test/tools/llvm-symbolizer/print_context.c

index 85cfaaf..e9b8f2a 100644 (file)
@@ -5,7 +5,8 @@ RUN: unset AFL_DRIVER_EXTRA_STATS_FILENAME
 RUN: %t-AFLDriverTest
 
 ; Test that specifying an invalid extra stats file causes a crash.
-RUN: ASAN_OPTIONS= AFL_DRIVER_EXTRA_STATS_FILENAME=%T not --crash %t-AFLDriverTest
+RUN: rm -rf %t-dir && mkdir -p %t-dir
+RUN: ASAN_OPTIONS= AFL_DRIVER_EXTRA_STATS_FILENAME=%t-dir not --crash %t-AFLDriverTest
 
 ; Test that specifying a corrupted stats file causes a crash.
 echo "peak_rss_mb :0" > %t
index 217ca7f..26f75f1 100644 (file)
@@ -5,7 +5,8 @@ RUN: unset AFL_DRIVER_STDERR_DUPLICATE_FILENAME
 RUN: %t-AFLDriverTest
 
 ; Test that specifying an invalid file causes a crash.
-RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%T" not --crash %t-AFLDriverTest
+RUN: rm -rf %t-dir && mkdir -p %t-dir
+RUN: ASAN_OPTIONS= AFL_DRIVER_STDERR_DUPLICATE_FILENAME="%t-dir" not --crash %t-AFLDriverTest
 
 ; Test that a file is created when specified as the duplicate stderr.
 RUN: AFL_DRIVER_STDERR_DUPLICATE_FILENAME=%t %t-AFLDriverTest
index b0cda57..fe8747c 100644 (file)
@@ -9,10 +9,11 @@ int main() {
   return 0;
 }
 
-// RUN: cp %s %T
-// RUN: cp %p/Inputs/print_context.o %T
-// RUN: cd %T
-// RUN: echo "%T/print_context.o 0x0" | llvm-symbolizer -print-source-context-lines=5 | FileCheck %s
+// RUN: rm -rf %t && mkdir -p %t
+// RUN: cp %s %t/
+// RUN: cp %p/Inputs/print_context.o %t
+// RUN: cd %t
+// RUN: echo "%t/print_context.o 0x0" | llvm-symbolizer -print-source-context-lines=5 | FileCheck %s
 
 // Inputs/print_context.o built with plain -g -c from this source file
 // Specifying -Xclang -fdebug-compilation-dir -Xclang . to make the debug info