summaryrefslogtreecommitdiffstats
path: root/clang/test/Frontend
diff options
context:
space:
mode:
authorDavid Zarzycki <dave@znu.io>2019-02-03 15:49:11 +0000
committerDavid Zarzycki <dave@znu.io>2019-02-03 15:49:11 +0000
commit4a0a64ac1d7420889053e81b67da512765a2e2c8 (patch)
treeb902cde706bb790da1a2a81f6ad3d9c76286765f /clang/test/Frontend
parentccc42869a7e30fcff7fd39f864a3e63c09bd0759 (diff)
downloadbcm5719-llvm-4a0a64ac1d7420889053e81b67da512765a2e2c8.tar.gz
bcm5719-llvm-4a0a64ac1d7420889053e81b67da512765a2e2c8.zip
Hot fix two test regressions (%T vs %t)
Different Unix "errno" values are returned for the following scenarios: $ echo test > /tmp/existingFile/impossibleDir/impossibleFile "Not a directory" $ echo test > /tmp/nonexistentDir/impossibleFile "No such file or directory" This fixes the regression introduced by r352971 / D57592. llvm-svn: 352996
Diffstat (limited to 'clang/test/Frontend')
-rw-r--r--clang/test/Frontend/output-failures.c2
-rw-r--r--clang/test/Frontend/stats-file.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/clang/test/Frontend/output-failures.c b/clang/test/Frontend/output-failures.c
index 33d47824c0c..0e9ea63f806 100644
--- a/clang/test/Frontend/output-failures.c
+++ b/clang/test/Frontend/output-failures.c
@@ -1,4 +1,4 @@
-// RUN: not %clang_cc1 -emit-llvm -o %t/doesnotexist/somename %s 2> %t
+// RUN: not %clang_cc1 -emit-llvm -o %t.doesnotexist/somename %s 2> %t
// RUN: FileCheck -check-prefix=OUTPUTFAIL -input-file=%t %s
// OUTPUTFAIL: error: unable to open output file '{{.*}}doesnotexist{{.}}somename': '{{[nN]}}o such file or directory'
diff --git a/clang/test/Frontend/stats-file.c b/clang/test/Frontend/stats-file.c
index c4aa329828f..53b264534c5 100644
--- a/clang/test/Frontend/stats-file.c
+++ b/clang/test/Frontend/stats-file.c
@@ -4,5 +4,5 @@
// ... here come some json values ...
// CHECK: }
-// RUN: %clang_cc1 -emit-llvm -o %t -stats-file=%t/doesnotexist/bla %s 2>&1 | FileCheck -check-prefix=OUTPUTFAIL %s
+// RUN: %clang_cc1 -emit-llvm -o %t -stats-file=%t.doesnotexist/bla %s 2>&1 | FileCheck -check-prefix=OUTPUTFAIL %s
// OUTPUTFAIL: warning: unable to open statistics output file '{{.*}}doesnotexist{{.}}bla': '{{[Nn]}}o such file or directory'
OpenPOWER on IntegriCloud