]> granicus.if.org Git - clang/commitdiff
Hot fix two test regressions (%T vs %t)
authorDavid Zarzycki <dave@znu.io>
Sun, 3 Feb 2019 15:49:11 +0000 (15:49 +0000)
committerDavid Zarzycki <dave@znu.io>
Sun, 3 Feb 2019 15:49:11 +0000 (15:49 +0000)
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.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@352996 91177308-0d34-0410-b5e6-96231b3b80d8

test/Frontend/output-failures.c
test/Frontend/stats-file.c

index 33d47824c0c87ccafd8ef9cae50bdf17479c0fa0..0e9ea63f8067b71b5ef67df3dc784d00e021ae4b 100644 (file)
@@ -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'
index c4aa329828f14420f9a22c22de46a27e2d472e9c..53b264534c5775d7caabcc3a5192c318b4a1a30d 100644 (file)
@@ -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'