Skip to content

Commit 622d649

Browse files
committed
[NFC] Fix Windows driver tests
1 parent 79eaf77 commit 622d649

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

test/Driver/access-notes.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
// RUN: %swiftc_driver -emit-executable -o %t.exe %s -access-notes-path %S/Inputs/missing.accessnotes -### 2>&1 | %FileCheck %s
1+
// RUN: %swiftc_driver -emit-executable -o %t.exe %s -access-notes-path %S/Inputs/missing.accessnotes -### 2>&1 | %FileCheck --enable-windows-compatibility %s
22

33
// CHECK: -access-notes-path SOURCE_DIR/test/Driver/Inputs/missing.accessnotes

test/Sema/access-notes-invalid.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
// RUN: %target-swift-frontend -typecheck -primary-file %s -access-notes-path %S/Inputs/missing.accessnotes 2>&1 | %FileCheck --check-prefix=CHECK-MISSING %s
1+
// RUN: %target-swift-frontend -typecheck -primary-file %s -access-notes-path %S/Inputs/missing.accessnotes 2>&1 | %FileCheck --check-prefix=CHECK-MISSING --enable-windows-compatibility %s
22
// CHECK-MISSING: <unknown>:0: warning: access notes at 'SOURCE_DIR/test/Sema/Inputs/missing.accessnotes' will be ignored due to an error while loading them: No such file or directory{{$}}
33

4-
// RUN: %target-swift-frontend -typecheck -primary-file %s -access-notes-path %S/Inputs/bad.accessnotes 2>&1 | %FileCheck --check-prefix=CHECK-BAD %s
4+
// RUN: %target-swift-frontend -typecheck -primary-file %s -access-notes-path %S/Inputs/bad.accessnotes 2>&1 | %FileCheck --check-prefix=CHECK-BAD --enable-windows-compatibility %s
55
// CHECK-BAD: <unknown>:0: warning: access notes at 'SOURCE_DIR/test/Sema/Inputs/bad.accessnotes' will be ignored due to an error while loading them: not a mapping at line 1, column 0{{$}}
66

77
// RUN: %target-swift-frontend -typecheck -primary-file %s -access-notes-path %S/Inputs/extra.accessnotes >%t.txt 2>&1
8-
// RUN: %FileCheck --check-prefix=CHECK-EXTRA %s <%t.txt
9-
// RUN: %FileCheck --check-prefix=NEGATIVE-EXTRA %s <%t.txt
8+
// RUN: %FileCheck --check-prefix=CHECK-EXTRA --enable-windows-compatibility %s <%t.txt
9+
// RUN: %FileCheck --check-prefix=NEGATIVE-EXTRA --enable-windows-compatibility %s <%t.txt
1010
// CHECK-EXTRA: <unknown>:0: remark: compiler ignored unknown key 'CorinthianLeather' in access notes at 'SOURCE_DIR/test/Sema/Inputs/extra.accessnotes'
1111
// NEGATIVE-EXTRA-NOT: <unknown>:0: warning: access notes at 'SOURCE_DIR/test/Sema/Inputs/extra.accessnotes' will be ignored due to an error while loading them
1212

0 commit comments

Comments
 (0)