Skip to content

Commit e56e0f6

Browse files
committed
[test] Clean up two importer+serialization tests.
...and give them a proper "REQUIRES: objc_interop" instead of "XFAIL: linux".
1 parent acdf28f commit e56e0f6

File tree

3 files changed

+6
-8
lines changed

3 files changed

+6
-8
lines changed

test/ClangModules/Inputs/SerializationHelper.swift

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import Foundation
2-
31
@_exported import ProtoWithInitializer
42
@_exported import TypeAndValue
53

test/ClangModules/serialization-search-paths.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// RUN: rm -rf %t && mkdir -p %t
2-
// RUN: %target-swift-frontend -emit-module-path %t/SerializationHelper.swiftmodule -I %S/Inputs/custom-modules -F %S/Inputs/frameworks %S/Inputs/SerializationHelper.swift
3-
// RUN: %target-swift-frontend -parse -I %t %s -verify
2+
// RUN: %target-swift-frontend -emit-module-path %t/SerializationHelper.swiftmodule -I %S/Inputs/custom-modules -F %S/Inputs/frameworks -sdk "" -disable-objc-attr-requires-foundation-module %S/Inputs/SerializationHelper.swift
3+
// RUN: %target-swift-frontend -parse -I %t %s -sdk "" -verify
44

5-
// XFAIL: linux
5+
// REQUIRES: objc_interop
66

77
import SerializationHelper
88
import Module

test/ClangModules/serialization.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
// RUN: rm -rf %t
22
// RUN: mkdir -p %t
3-
// RUN: %target-swift-frontend -emit-module-path %t/SerializationHelper.swiftmodule -I %S/Inputs/custom-modules %S/Inputs/SerializationHelper.swift
4-
// RUN: %target-swift-frontend -parse -I %t -I %S/Inputs/custom-modules %s -verify
3+
// RUN: %target-swift-frontend -emit-module-path %t/SerializationHelper.swiftmodule -I %S/Inputs/custom-modules %S/Inputs/SerializationHelper.swift -sdk "" -disable-objc-attr-requires-foundation-module
4+
// RUN: %target-swift-frontend -parse -sdk "" -I %t -I %S/Inputs/custom-modules %s -verify
55

6-
// XFAIL: linux
6+
// REQUIRES: objc_interop
77

88
import SerializationHelper
99

0 commit comments

Comments
 (0)