Skip to content

Commit 86a9cc3

Browse files
authored
[test] Fix loaded_module_trace.swift for arch's that sort before "M" (#22907)
This field is reverse-path-sorted, so the order depends on what architecture we're compiling for. That's not what's being tested, so just use a CHECK-DAG. rdar://problem/48377454
1 parent 86b7436 commit 86a9cc3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/Driver/loaded_module_trace.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@
99
// CHECK: "name":"loaded_module_trace"
1010
// CHECK: "arch":"{{[^"]*}}"
1111
// CHECK: "swiftmodules":[
12-
// CHECK: "{{[^"]*\\[/\\]}}Module2.swiftmodule"
13-
// CHECK: "{{[^"]*\\[/\\]}}Swift.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
14-
// CHECK: "{{[^"]*\\[/\\]}}SwiftOnoneSupport.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
12+
// CHECK-DAG: "{{[^"]*\\[/\\]}}Module2.swiftmodule"
13+
// CHECK-DAG: "{{[^"]*\\[/\\]}}Swift.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
14+
// CHECK-DAG: "{{[^"]*\\[/\\]}}SwiftOnoneSupport.swiftmodule{{(\\[/\\][^"]+[.]swiftmodule)?}}"
1515
// CHECK: ]
1616
// CHECK: }
1717

0 commit comments

Comments
 (0)