Skip to content

Commit d7c1f57

Browse files
author
David Rönnqvist
committed
Conditional checks using %target-runtime instead of %target-os
1 parent 9ae6fda commit d7c1f57

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/ClangImporter/non-modular-include.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/non-modular -F %S/Inputs/non-modular 2>&1 | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-%target-os %s
2+
// RUN: not %target-swift-frontend -typecheck %s -I %S/Inputs/non-modular -F %S/Inputs/non-modular 2>&1 | %FileCheck --check-prefix=CHECK --check-prefix=CHECK-%target-runtime %s
33

44
// CHECK: {{.+}}/non-modular/Foo.framework/Headers/Foo.h:1:9: error: include of non-modular header inside framework module 'Foo'
5-
// CHECK-macosx: error: could not build Objective-C module 'Foo'
6-
// CHECK-linux-gnu: error: could not build C module 'Foo'
5+
// CHECK-objc: error: could not build Objective-C module 'Foo'
6+
// CHECK-native: error: could not build C module 'Foo'
77
// CHECK-NOT: error
88

99
import Foo

0 commit comments

Comments
 (0)