Skip to content

Commit 1de0e3b

Browse files
authored
[test] Improve ParseableInterfaceImports check patterns (#70519)
When one configures their toolchain to use a define (`-D`) in either `SWIFT_FRONTEND_TEST_OPTIONS` or `SWIFT_DRIVER_TEST_OPTIONS`, the DIModule generated by this test might have other elements like `configMacros` in between `name:` and `includePath:`. To account for this possibility, break the check in two, using `CHECK-SAME` for the second part.
1 parent e383631 commit 1de0e3b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/DebugInfo/ParseableInterfaceImports.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@
88

99
import basic
1010

11-
// CHECK: !DIModule(scope: null, name: "basic", includePath: "
11+
// CHECK: !DIModule(scope: null, name: "basic",
12+
// CHECK-SAME: includePath: "
1213
// CHECK-SAME: basic.swiftinterface"
1314

1415
// Even if the module interface is in the SDK, we still return the path
1516
// to the swiftinterface.
16-
// SDK: !DIModule(scope: null, name: "basic", includePath: "
17+
// SDK: !DIModule(scope: null, name: "basic",
18+
// SDK-SAME: includePath: "
1719
// SDK-SAME: basic{{.*}}.swiftinterface"
1820

1921
func markUsed<T>(_ t: T) {}

0 commit comments

Comments
 (0)