Skip to content

Commit 6d72977

Browse files
author
Harlan Haskins
committed
[test] [ModuleInterfaces] Get tests passing with new diagnostics
1 parent ea7e7e9 commit 6d72977

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

test/Driver/options.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
// RUN: not %swiftc_driver -import-objc-header fake.h -emit-parseable-module-interface %s 2>&1 | %FileCheck -check-prefix=BRIDGING_HEADER_SWIFTINTERFACE %s
2929
// RUN: not %swiftc_driver -import-objc-header fake.h -emit-parseable-module-interface-path fake.swiftinterface %s 2>&1 | %FileCheck -check-prefix=BRIDGING_HEADER_SWIFTINTERFACE %s
30-
// BRIDGING_HEADER_SWIFTINTERFACE: error: using bridging headers with parseable module interfaces is unsupported
30+
// BRIDGING_HEADER_SWIFTINTERFACE: error: using bridging headers with module interfaces is unsupported
3131

3232
// RUN: %swift_driver -### | %FileCheck -check-prefix=DEFAULT_REPL %s
3333
// DEFAULT_REPL: -repl

test/Frontend/supplementary-output-support.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,6 @@
2525
// RESOLVE_IMPORTS_NO_OBJC_HEADER: error: this mode does not support emitting Objective-C headers{{$}}
2626

2727
// RUN: not %target-swift-frontend -parse -emit-parseable-module-interface-path %t %s 2>&1 | %FileCheck -check-prefix=PARSE_NO_INTERFACE %s
28-
// PARSE_NO_INTERFACE: error: this mode does not support emitting parseable interface files{{$}}
28+
// PARSE_NO_INTERFACE: error: this mode does not support emitting module interface files{{$}}
2929
// RUN: not %target-swift-frontend -emit-silgen -emit-parseable-module-interface-path %t %s 2>&1 | %FileCheck -check-prefix=SILGEN_NO_INTERFACE %s
30-
// SILGEN_NO_INTERFACE: error: this mode does not support emitting parseable interface files{{$}}
30+
// SILGEN_NO_INTERFACE: error: this mode does not support emitting module interface files{{$}}

test/ParseableInterface/ModuleCache/module-cache-bad-version.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
// RUN: test ! -f %t/TestModule.swiftmodule
2222
// RUN: test ! -f %t/modulecache/LeafModule-*.swiftmodule
2323
// RUN: %FileCheck %s -check-prefix=CHECK-ERR <%t/err.txt
24-
// CHECK-ERR: {{error: unsupported version of parseable module interface '.*[/\\]LeafModule.swiftinterface': '9999.999'}}
24+
// CHECK-ERR: {{error: unsupported version of module interface '.*[/\\]LeafModule.swiftinterface': '9999.999'}}
2525
// CHECK-ERR: error: no such module 'LeafModule
2626

2727
import LeafModule

test/ParseableInterface/imports.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
@_exported import empty
77
import B.B2
8-
import func C.c // expected-warning {{scoped imports are not yet supported in parseable module interfaces}}
8+
import func C.c // expected-warning {{scoped imports are not yet supported in module interfaces}}
99
import D
1010
@_implementationOnly import Secret_BAD
1111

0 commit comments

Comments
 (0)