summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorKuba Brecka <kuba.brecka@gmail.com>2014-12-22 00:02:28 +0000
committerKuba Brecka <kuba.brecka@gmail.com>2014-12-22 00:02:28 +0000
commit2ce8c25f4bcdad376faca601c830499d677ac9b4 (patch)
tree281f21fa13a91e98949dd6fbd929a906d9616e22 /compiler-rt
parent90c224a1436122a7b79ec373c030f966603c1cd7 (diff)
downloadbcm5719-llvm-2ce8c25f4bcdad376faca601c830499d677ac9b4.tar.gz
bcm5719-llvm-2ce8c25f4bcdad376faca601c830499d677ac9b4.zip
log-path_test testcase - make the invalid path more invalid
The ASan test/asan/TestCases/log-path_test.cc testcase uses /INVALID as an invalid path and expects that the program will not be allowed to create or write to that file. This actually is a valid writable path on one of my setups. Let's make the path more invalid. Reviewed at http://reviews.llvm.org/D6727 llvm-svn: 224694
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/asan/TestCases/log-path_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler-rt/test/asan/TestCases/log-path_test.cc b/compiler-rt/test/asan/TestCases/log-path_test.cc
index 5a1d0729119..7dd1fadda86 100644
--- a/compiler-rt/test/asan/TestCases/log-path_test.cc
+++ b/compiler-rt/test/asan/TestCases/log-path_test.cc
@@ -13,7 +13,7 @@
// RUN: FileCheck %s --check-prefix=CHECK-ERROR < %t.log.*
// Invalid log_path.
-// RUN: env ASAN_OPTIONS=log_path=/INVALID not %run %t 2> %t.out
+// RUN: env ASAN_OPTIONS=log_path=/dev/null/INVALID not %run %t 2> %t.out
// RUN: FileCheck %s --check-prefix=CHECK-INVALID < %t.out
// Too long log_path.
@@ -40,5 +40,5 @@ int main(int argc, char **argv) {
return res;
}
// CHECK-ERROR: ERROR: AddressSanitizer
-// CHECK-INVALID: ERROR: Can't open file: /INVALID
+// CHECK-INVALID: ERROR: Can't open file: /dev/null/INVALID
// CHECK-LONG: ERROR: Path is too long: 01234
OpenPOWER on IntegriCloud