r348612 - Make testcase more robust for completely-out-of-tree builds.
Adrian Prantl via cfe-commits
cfe-commits at lists.llvm.org
Fri Dec 7 09:04:26 PST 2018
Author: adrian
Date: Fri Dec 7 09:04:26 2018
New Revision: 348612
URL: http://llvm.org/viewvc/llvm-project?rev=348612&view=rev
Log:
Make testcase more robust for completely-out-of-tree builds.
Thats to Dave Zarzycki for reprorting this!
Modified:
cfe/trunk/test/CodeGen/debug-info-abspath.c
Modified: cfe/trunk/test/CodeGen/debug-info-abspath.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGen/debug-info-abspath.c?rev=348612&r1=348611&r2=348612&view=diff
==============================================================================
--- cfe/trunk/test/CodeGen/debug-info-abspath.c (original)
+++ cfe/trunk/test/CodeGen/debug-info-abspath.c Fri Dec 7 09:04:26 2018
@@ -1,15 +1,19 @@
+// RUN: mkdir -p %t/UNIQUEISH_SENTINEL
+// RUN: cp %s %t/UNIQUEISH_SENTINEL/debug-info-abspath.c
+
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
-// RUN: %s -emit-llvm -o - | FileCheck %s
+// RUN: %t/UNIQUEISH_SENTINEL/debug-info-abspath.c -emit-llvm -o - \
+// RUN: | FileCheck %s
// RUN: cp %s %t.c
// RUN: %clang_cc1 -debug-info-kind=limited -triple %itanium_abi_triple \
// RUN: %t.c -emit-llvm -o - | FileCheck %s --check-prefix=INTREE
void foo() {}
-// Since %s is an absolute path, directory should be a nonempty
-// prefix, but the CodeGen part should be part of the filename.
+// Since %s is an absolute path, directory should be the common
+// prefix, but the directory part should be part of the filename.
-// CHECK: DIFile(filename: "{{.*}}CodeGen{{.*}}debug-info-abspath.c"
-// CHECK-SAME: directory: "{{.+}}")
+// CHECK: DIFile(filename: "{{.*}}UNIQUEISH_SENTINEL{{.*}}debug-info-abspath.c"
+// CHECK-NOT: directory: "{{.*}}UNIQUEISH_SENTINEL
// INTREE: DIFile({{.*}}directory: "{{.+}}CodeGen{{.*}}")
More information about the cfe-commits
mailing list