Skip to content

[test] Limit the macOS-specific parts of objc_init.swift #12313

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 6, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions test/ClangImporter/objc_init.swift
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil -I %S/Inputs/custom-modules %s -verify

// REQUIRES: objc_interop
// REQUIRES: OS=macosx
// FIXME: <rdar://problem/19452886> test/ClangModules/objc_init.swift should not require REQUIRES: OS=macosx

import AppKit
import objc_ext
Expand Down Expand Up @@ -59,7 +57,10 @@ class MyDocument3 : NSAwesomeDocument {

func createMyDocument3(_ url: NSURL) {
var md = MyDocument3()
#if os(macOS)
// Limit this particular test to macOS; it depends on availability.
md = try! MyDocument3(contentsOf: url as URL, ofType:"")
#endif
_ = md
}

Expand Down