Skip to content

Commit cd7946d

Browse files
committed
test: make Frontend.dependencies pass on Windows
Windows absolute paths contain [A-Z]:. Filter out the explicit ' : ' separator that we were trying to check for to allow the test to pass on Windows as well.
1 parent e622ea6 commit cd7946d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/Frontend/dependencies.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
// CHECK-BASIC-LABEL: - :
1111
// CHECK-BASIC: Inputs/empty\ file.swift
1212
// CHECK-BASIC: Swift.swiftmodule
13-
// CHECK-BASIC-NOT: {{[^\\]}}:
13+
// CHECK-BASIC-NOT: {{ }}:{{ }}
1414

1515
// CHECK-BASIC-YAML-LABEL: depends-external:
1616
// CHECK-BASIC-YAML-NOT: empty\ file.swift
@@ -37,7 +37,7 @@
3737
// CHECK-MULTIPLE-OUTPUTS-LABEL: empty\ file.h :
3838
// CHECK-MULTIPLE-OUTPUTS: Inputs/empty\ file.swift
3939
// CHECK-MULTIPLE-OUTPUTS: Swift.swiftmodule
40-
// CHECK-MULTIPLE-OUTPUTS-NOT: {{[^\\]}}:
40+
// CHECK-MULTIPLE-OUTPUTS-NOT: {{ }}:{{ }}
4141

4242
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -disable-objc-attr-requires-foundation-module -import-objc-header %S/Inputs/dependencies/extra-header.h -emit-dependencies-path - -resolve-imports %s | %FileCheck -check-prefix=CHECK-IMPORT %s
4343
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -enable-objc-interop -disable-objc-attr-requires-foundation-module -import-objc-header %S/Inputs/dependencies/extra-header.h -track-system-dependencies -emit-dependencies-path - -resolve-imports %s | %FileCheck -check-prefix=CHECK-IMPORT-TRACK-SYSTEM %s

0 commit comments

Comments
 (0)