diff options
author | Adrian Prantl <aprantl@apple.com> | 2018-12-07 17:04:26 +0000 |
---|---|---|
committer | Adrian Prantl <aprantl@apple.com> | 2018-12-07 17:04:26 +0000 |
commit | 677b72f70158ffbc2313ecad0886b24ffe89d294 (patch) | |
tree | 55948724ed209d96c2a0d67cf0e231e786403725 /clang/test/CodeGen | |
parent | 036a9a04205b302f3420df3274daf29c810c2115 (diff) | |
download | bcm5719-llvm-677b72f70158ffbc2313ecad0886b24ffe89d294.tar.gz bcm5719-llvm-677b72f70158ffbc2313ecad0886b24ffe89d294.zip |
Make testcase more robust for completely-out-of-tree builds.
Thats to Dave Zarzycki for reprorting this!
llvm-svn: 348612
Diffstat (limited to 'clang/test/CodeGen')
-rw-r--r-- | clang/test/CodeGen/debug-info-abspath.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/clang/test/CodeGen/debug-info-abspath.c b/clang/test/CodeGen/debug-info-abspath.c index 3ca170621f9..1273235793e 100644 --- a/clang/test/CodeGen/debug-info-abspath.c +++ b/clang/test/CodeGen/debug-info-abspath.c @@ -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{{.*}}") |