Skip to content

Commit 1a6dc7d

Browse files
Rewrite test cases to remove assumed non-existence of 'missing' directory
1 parent 89ff568 commit 1a6dc7d

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

clang/test/Driver/ps5-linker.c

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -58,14 +58,15 @@
5858
// Test that <sdk-root>/target/lib is added to library search paths, if it
5959
// exists and no --sysroot is specified.
6060

61-
// RUN: rm -rf %t.dir && mkdir -p %t.dir/target/lib
61+
// RUN: rm -rf %t.dir && mkdir %t.dir
62+
// RUN: env SCE_PROSPERO_SDK_DIR=%t.dir %clang --target=x64_64-sie-ps5 %s -### 2>&1 | FileCheck --check-prefixes=CHECK-NO-TARGETLIB %s
63+
// RUN: env SCE_PROSPERO_SDK_DIR=%t.dir %clang --target=x64_64-sie-ps5 %s -### --sysroot=%t.dir 2>&1 | FileCheck --check-prefixes=CHECK-NO-TARGETLIB %s
64+
65+
// CHECK-NO-TARGETLIB: {{ld(\.exe)?}}"
66+
// CHECK-NO-TARGETLIB-NOT: "-L{{.*[/\\]}}target/lib"
67+
68+
// RUN: mkdir -p %t.dir/target/lib
6269
// RUN: env SCE_PROSPERO_SDK_DIR=%t.dir %clang --target=x64_64-sie-ps5 %s -### 2>&1 | FileCheck --check-prefixes=CHECK-TARGETLIB %s
6370

6471
// CHECK-TARGETLIB: {{ld(\.exe)?}}"
6572
// CHECK-TARGETLIB-SAME: "-L{{.*[/\\]}}target/lib"
66-
67-
// RUN: env SCE_PROSPERO_SDK_DIR=missing %clang --target=x64_64-sie-ps5 %s -### 2>&1 | FileCheck --check-prefixes=CHECK-NO-TARGETLIB %s
68-
// RUN: env SCE_PROSPERO_SDK_DIR=%t.dir %clang --target=x64_64-sie-ps5 %s -### --sysroot=missing 2>&1 | FileCheck --check-prefixes=CHECK-NO-TARGETLIB %s
69-
70-
// CHECK-NO-TARGETLIB: {{ld(\.exe)?}}"
71-
// CHECK-NO-TARGETLIB-NOT: "-L{{.*[/\\]}}target/lib"

0 commit comments

Comments
 (0)