mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Mark tests that don't pass on linux as XFAIL.
Swift SVN r23573
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-stdlib-swift
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Swift
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
// RUN: %target-run %t/ArrayBridge > %t.txt
|
||||
// RUN: FileCheck %s < %t.txt
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
import ArrayBridgeObjC
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-stdlib-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
import Swift
|
||||
|
||||
//===--- class Tracked ----------------------------------------------------===//
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
// RUN: xcrun -sdk %target-sdk-name clang++ -fobjc-arc -fobjc-abi-version=2 -arch %target-cpu %S/Inputs/SlurpFastEnumeration/SlurpFastEnumeration.m -c -o %t/SlurpFastEnumeration.o
|
||||
// RUN: %S/../../utils/line-directive %t/main.swift -- %target-build-swift %S/Inputs/DictionaryKeyValueTypes.swift %t/main.swift -I %S/Inputs/SlurpFastEnumeration/ -Xlinker %t/SlurpFastEnumeration.o -o %t/Array -Xfrontend -disable-access-control
|
||||
// RUN: %S/../../utils/line-directive %t/main.swift -- %target-run %t/Array
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
//
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP}}
|
||||
// XFAIL: linux
|
||||
|
||||
// This file is gybbe'd twice, once to generate the test file, and
|
||||
// once to run the tests. The second time, the output is thrown away,
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-stdlib-swift %s | FileCheck %s
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import Swift
|
||||
import SwiftShims
|
||||
|
||||
@@ -18,6 +18,7 @@
|
||||
// RUN: rm -rf %t && mkdir -p %t && %S/../../utils/gyb %s -o %t/out.swift
|
||||
// RUN: %S/../../utils/line-directive %t/out.swift -- %target-build-swift -parse-stdlib -module-cache-path %t/clang-module-cache %t/out.swift -o %t/a.out
|
||||
// RUN: %S/../../utils/line-directive %t/out.swift -- %target-run %t/a.out
|
||||
// XFAIL: linux
|
||||
|
||||
import Swift
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
// CHECK: testing...
|
||||
println("testing...")
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
// RUN: rm -rf %t && mkdir -p %t
|
||||
// RUN: %target-build-swift %s -parse-stdlib -Xfrontend -disable-access-control -o %t/Builtins
|
||||
// RUN: %target-run %t/Builtins
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import Swift
|
||||
import SwiftShims
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import CoreGraphics
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
// FIXME: Casting.cpp has dozens of places to fail a cast. This test does not
|
||||
// attempt to enumerate them all.
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-stdlib-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Swift
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP|ABRT}}
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-stdlib-swift
|
||||
// XFAIL: linux
|
||||
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// RUN: %target-build-swift %S/Inputs/DictionaryKeyValueTypes.swift %t/main.swift -I %S/Inputs/SlurpFastEnumeration/ -Xlinker %t/SlurpFastEnumeration.o -o %t/Dictionary -Xfrontend -disable-access-control
|
||||
//
|
||||
// RUN: %target-run %t/Dictionary
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
// RUN: %target-run %t/a.out BridgedKeyIsNotNSCopyable2 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/a.out Downcast1 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/a.out Downcast2 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP|ABRT}}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: %target-build-swift %s -o %t/a.out -Ounchecked
|
||||
//
|
||||
// RUN: %target-run %t/a.out
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Dispatch
|
||||
import Foundation
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-swift-frontend -verify -parse %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Dispatch
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
// RUN: %target-run %t/a.out_Release 6 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/a.out_Release 7 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/a.out_Release 8 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP}}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// RUN: echo "typealias TestFloat = Double" > %t/double_type.swift
|
||||
// RUN: %target-build-swift %t/main.swift %t/double_type.swift -o %t/double.out
|
||||
// RUN: %target-run %t/double.out | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// RUN: rm -rf %t && mkdir -p %t
|
||||
// RUN: %target-build-swift %s -parse-stdlib -Xfrontend -disable-access-control -o %t/FloatingPoint
|
||||
// RUN: %target-run %t/FloatingPoint
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-stdlib-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Swift
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -19,6 +19,7 @@
|
||||
// RUN: %target-run %t/a.out_Debug Closed 2>&1 | FileCheck %s
|
||||
// RUN: %target-run %t/a.out_Release HalfOpen 2>&1 | FileCheck %s
|
||||
// RUN: %target-run %t/a.out_Release Closed 2>&1 | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP}}
|
||||
|
||||
@@ -13,6 +13,7 @@
|
||||
// RUN: rm -rf %t && mkdir -p %t && %S/../../utils/gyb %s -o %t/Join.swift
|
||||
// RUN: %S/../../utils/line-directive %t/Join.swift -- %target-build-swift -module-cache-path %t/clang-module-cache %t/Join.swift -o %t/a.out
|
||||
// RUN: %S/../../utils/line-directive %t/Join.swift -- %target-run %t/a.out
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: mkdir -p %t
|
||||
// RUN: %target-build-swift -module-cache-path %t/clang-module-cache %s -o %t/a.out
|
||||
// RUN: %target-run %t/a.out
|
||||
// XFAIL: linux
|
||||
|
||||
//
|
||||
// Tests for the NSString APIs as exposed by String
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
// RUN: rm -rf %t && mkdir -p %t && %S/../../utils/gyb %s -o %t/NewArray.swift
|
||||
// RUN: %S/../../utils/line-directive %t/NewArray.swift -- %target-build-swift -module-cache-path %t/clang-module-cache %t/NewArray.swift -o %t/a.out -Xfrontend -disable-access-control
|
||||
// RUN: %target-run %t/a.out 2>&1 | %S/../../utils/line-directive %t/NewArray.swift -- FileCheck %t/NewArray.swift
|
||||
// XFAIL: linux
|
||||
|
||||
var xCount = 0
|
||||
var xSerial = 0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-stdlib-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
import Swift
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -9,6 +9,7 @@
|
||||
// RUN: %target-run %t/OptionalTraps_Debug UnwrapNone1 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/OptionalTraps_Release UnwrapNone1 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/OptionalTraps_Fast UnwrapNoneFast1 2>&1 | FileCheck %s -check-prefix=CHECK_UNWRAP_NONE_1_FAST
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -21,6 +21,7 @@
|
||||
// RUN: %target-run %t/a.out_Release HalfOpen 2>&1 | FileCheck %s
|
||||
// RUN: %target-run %t/a.out_Release Closed 2>&1 | FileCheck %s
|
||||
// RUN: %target-run %t/a.out_Release OutOfRange 2>&1 | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP}}
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: %target-build-swift %s -module-name Reflection -o %t/a.out
|
||||
// RUN: %S/timeout.sh 360 %target-run %t/a.out %S/Inputs/shuffle.jpg | FileCheck %s
|
||||
// FIXME: timeout wrapper is necessary because the ASan test runs for hours
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
import SpriteKit
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %target-build-swift -module-name a %s -o %t.out
|
||||
// RUN: %target-run %t.out
|
||||
// XFAIL: linux
|
||||
|
||||
//
|
||||
// This file contains reflection tests that depend on hash values.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: %target-build-swift -parse-stdlib -Xfrontend -disable-access-control -module-name a %s -o %t.out
|
||||
// RUN: %target-run %t.out
|
||||
// XFAIL: linux
|
||||
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// RUN: %target-build-swift %S/Inputs/DictionaryKeyValueTypes.swift %t/main.swift -I %S/Inputs/SlurpFastEnumeration/ -Xlinker %t/SlurpFastEnumeration.o -o %t/Set -Xfrontend -disable-access-control
|
||||
//
|
||||
// RUN: %target-run %t/Set
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
// R/UN: %target-run %t/a.out BridgedKeyIsNotNSCopyable1 2>&1 | FileCheck %s -check-prefix=CHECK-UNRECOGNIZED-SELECTOR
|
||||
// R/UN: %target-run %t/a.out Downcast1 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// R/UN: %target-run %t/a.out Downcast2 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP|ABRT}}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@
|
||||
// RUN: %S/../../utils/gyb %s -o %t.swift
|
||||
// RUN: %S/../../utils/line-directive %t.swift -- %target-build-swift -Xfrontend -disable-access-control %t.swift -o %t.out
|
||||
// RUN: %S/../../utils/line-directive %t.swift -- %target-run %t.out
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
import SpriteKit
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
// RUN: %target-run %t/a.out StringUTF8ViewSubscriptEndIndex 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/a.out StringUTF16ViewSubscriptDecrementedStartIndex 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// RUN: %target-run %t/a.out StringUTF16ViewSubscriptEndIndex 2>&1 | FileCheck %s -check-prefix=CHECK
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK: OK
|
||||
// CHECK: CRASHED: SIG{{ILL|TRAP|ABRT}}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: linux
|
||||
|
||||
class C {}
|
||||
struct S {}
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
//
|
||||
//===----------------------------------------------------------------------===//
|
||||
// RUN: %target-run-stdlib-swift
|
||||
// XFAIL: linux
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
// RUN: %target-run-simple-swift
|
||||
// XFAIL: interpret
|
||||
// XFAIL: interpret, linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t && mkdir -p %t && %S/../../utils/gyb %s -o %t/UnsafePointer.swift
|
||||
// RUN: %S/../../utils/line-directive %t/UnsafePointer.swift -- %target-build-swift -module-cache-path %t/clang-module-cache %t/UnsafePointer.swift -o %t/a.out
|
||||
// RUN: %S/../../utils/line-directive %t/UnsafePointer.swift -- %target-run %t/a.out
|
||||
// XFAIL: linux
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-run-simple-swift | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
import CoreGraphics
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// RUN: mkdir -p %t
|
||||
// RUN: %target-build-swift %s -o %t/a.out -Ounchecked
|
||||
// RUN: %target-run %t/a.out
|
||||
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
import StdlibUnittest
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %target-build-swift -Xfrontend %clang-importer-sdk -module-cache-path %t/clang-module-cache %s -emit-ir
|
||||
// XFAIL: linux
|
||||
|
||||
import UIKit
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %target-build-swift -Xfrontend %clang-importer-sdk -module-cache-path %t/clang-module-cache %s -emit-ir
|
||||
// XFAIL: linux
|
||||
|
||||
// Test that we don't crash when producing IR.
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %swift -parse %s -verify -D FOO -D BAR -target x86_64-apple-macosx10.9
|
||||
// XFAIL: linux
|
||||
|
||||
class A {}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %swift -parse %s -verify -D FOO -D BAZ -target x86_64-apple-macosx10.9
|
||||
// XFAIL: linux
|
||||
|
||||
#if FOO
|
||||
var a = 0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %swift -parse %s -verify -D FOO -D BAZ -target x86_64-apple-macosx10.9
|
||||
// XFAIL: linux
|
||||
|
||||
#if FOO == BAZ // expected-error{{expected '&&' or '||' expression}}
|
||||
var x = 0
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %swift -parse %s -verify -D FOO -D BAZ -target x86_64-apple-macosx10.9
|
||||
// XFAIL: linux
|
||||
|
||||
#if arch(x86_64) && os(OSX)
|
||||
println("Mac") // This should not be parsed as a trailing closure
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %target-swift-frontend -parse %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import Darwin
|
||||
import ObjectiveC
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
// RUN: not %swift -parse %s -import-objc-header %t/fake.h -module-cache-path %t 2>&1 | FileCheck -check-prefix=MISSING-HEADER %s
|
||||
|
||||
// RUN: not %swift -parse %s -import-objc-header %S/../../Inputs/empty.swift -module-cache-path %t 2>&1 | FileCheck -check-prefix=EMPTY-HEADER %s
|
||||
// XFAIL: linux
|
||||
|
||||
// MISSING-HEADER: error: bridging header '{{.*}}/fake.h' does not exist
|
||||
// MISSING-HEADER-NOT: error
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
// RUN: %swiftc_driver -emit-module -o %t/Mixed.framework/Modules/Mixed.swiftmodule/x86_64.swiftmodule %S/Inputs/mixed-framework/Mixed.swift -import-underlying-module -F %t -module-name Mixed -Xfrontend -disable-objc-attr-requires-foundation-module
|
||||
// RUN: %swift %clang-importer-sdk -module-cache-path %t -F %t -parse %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
// REQUIRES: X86
|
||||
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
|
||||
// RUN: rm %t/mixed-target/header.h
|
||||
// RUN: not %swift %clang-importer-sdk -module-cache-path %t -I %t -I %S/../Inputs/custom-modules -parse %s 2>&1 | FileCheck %s -check-prefix=USE-SERIALIZED-HEADER
|
||||
// XFAIL: linux
|
||||
|
||||
// USE-SERIALIZED-HEADER: redefinition of 'Point'
|
||||
// USE-SERIALIZED-HEADER: previous definition is here
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
|
||||
// RUN: rm -rf %t/mixed-target/
|
||||
// RUN: %swift %clang-importer-sdk -module-cache-path %t -I %t -I %S/../Inputs/custom-modules -parse %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import MixedWithHeader
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -I %S/Inputs/user-module -parse -module-cache-path %t/clang-module-cache -target x86_64-apple-darwin13 %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
// Type checker should not report any errors in the code below.
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: mkdir -p %t
|
||||
|
||||
// RUN: %swift %clang-importer-sdk -target x86_64-apple-macosx10.9 -module-cache-path %t -I %S/../Inputs/custom-modules -import-objc-header %S/Inputs/mixed-target/header.h -parse %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
func test(foo : FooProto) {
|
||||
let _: CInt = foo.bar
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// RUN: %swift %clang-importer-sdk -target x86_64-apple-macosx10.9 -module-cache-path %t -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -parse %s -verify
|
||||
// RUN: %swift %clang-importer-sdk -target x86_64-apple-macosx10.9 -module-cache-path %t -F %S/Inputs/mixed-target/ -module-name Mixed -import-underlying-module -emit-ir %S/../../Inputs/empty.swift - | FileCheck -check-prefix=CHECK-AUTOLINK %s
|
||||
// RUN: not %swift %clang-importer-sdk -target x86_64-apple-macosx10.9 -module-cache-path %t -F %S/Inputs/mixed-target/ -module-name WrongName -import-underlying-module -parse %s 2>&1 | FileCheck -check-prefix=CHECK-WRONG-NAME %s
|
||||
// XFAIL: linux
|
||||
|
||||
// CHECK-AUTOLINK: !{{[0-9]+}} = metadata !{i32 {{[0-9]+}}, metadata !"Linker Options", metadata ![[LINK_LIST:[0-9]+]]}
|
||||
// CHECK-AUTOLINK: ![[LINK_LIST]] = metadata !{
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// RUN: %swiftc_driver -emit-module -emit-objc-header -o %t/Base.swiftmodule %S/Inputs/resolve-cross-language/Base.swift -Xfrontend -disable-objc-attr-requires-foundation-module
|
||||
// RUN: cp %S/Inputs/resolve-cross-language/Base-module.map %t/module.map
|
||||
// RUN: %swift %clang-importer-sdk -module-cache-path %t -parse -I %t -F %S/Inputs/resolve-cross-language %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import Base
|
||||
import BaseUser
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
// RUN: %swift %clang-importer-sdk -parse %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import Security
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// XFAIL: linux
|
||||
|
||||
// The accessibility APIs are handled differently. A class might conform to both
|
||||
// NSAccessibility (containing accessibility properties) and individual
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift -parse -verify -module-cache-path %t/clang-module-cache %clang-importer-sdk -I %S/Inputs/custom-modules %s
|
||||
// XFAIL: linux
|
||||
|
||||
// Do not import Foundation! This tests indirect visibility.
|
||||
import Redeclaration
|
||||
|
||||
@@ -7,6 +7,7 @@
|
||||
// RUN: %swift %s -target x86_64-apple-macosx10.9 -sdk %S/Inputs -I=%S/Inputs/custom-modules -I %t -module-cache-path %t/clang-module-cache -emit-ir -o %t/with-adapter.ll
|
||||
// RUN: FileCheck %s < %t/with-adapter.ll
|
||||
// RUN: FileCheck --check-prefix=CHECK-WITH-SWIFT %s < %t/with-adapter.ll
|
||||
// XFAIL: linux
|
||||
|
||||
import LinkMusket
|
||||
import LinkFramework
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -I %S/Inputs/custom-modules -target x86_64-apple-macosx10.9 %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Dispatch
|
||||
import Foundation
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 -application-extension %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: blocks{{.*}}.pcm
|
||||
|
||||
import blocks
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift -parse -verify -import-cf-types -module-cache-path %t/clang-module-cache -I %S/Inputs/custom-modules -target x86_64-apple-macosx10.9 %s
|
||||
// XFAIL: linux
|
||||
|
||||
import CoreCooling
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s -emit-ir -o - | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import cfuncs
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: mkdir -p %t
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 -I %S/Inputs %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: cfuncs{{.*}}.pcm
|
||||
|
||||
import cfuncs
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: mkdir -p %t
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 -I %S/Inputs %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: cfuncs{{.*}}.pcm
|
||||
|
||||
import cfuncs
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 -emit-ir -o - -primary-file %s | FileCheck %s
|
||||
// XFAIL: linux
|
||||
|
||||
import ctypes
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: ctypes{{.*}}.pcm
|
||||
|
||||
import ctypes
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -enable-union-import -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: ctypes{{.*}}.pcm
|
||||
|
||||
import ctypes
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s -emit-ir -o - | FileCheck %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s --check-prefix=CHECK-LS
|
||||
// XFAIL: linux
|
||||
// CHECK-LS: cvars{{.*}}.pcm
|
||||
|
||||
import cvars
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: cvars{{.*}}.pcm
|
||||
|
||||
import cvars
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t.mcp
|
||||
// RUN: not %swift -parse %s -F %S/Inputs/frameworks -module-cache-path %t.mcp -Xcc -D -Xcc FOO 2> %t.err.txt
|
||||
// RUN: FileCheck -input-file=%t.err.txt %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Module
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: macros{{.*}}.pcm
|
||||
|
||||
@exported import macros
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
// RUN: %S/../../utils/gyb %s -o %t/mapped-integers.swift
|
||||
// RUN: %swift %clang-importer-sdk -parse -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %t/mapped-integers.swift
|
||||
// RUN: ls -lR %t/clang-module-cache | FileCheck %s
|
||||
// XFAIL: linux
|
||||
// CHECK: ctypes{{.*}}.pcm
|
||||
|
||||
import ctypes
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
// RUN: %swift -emit-module %S/Inputs/adapter.swift -sdk %S/Inputs -I=%S/Inputs/custom-modules -module-name ClangModuleWithAdapter -o %t
|
||||
// RUN: %swift %s -target x86_64-apple-macosx10.9 -sdk %S/Inputs -I=%S/Inputs/custom-modules -I %t -module-cache-path %t/clang-module-cache -parse
|
||||
// RUN: %swift %s -target x86_64-apple-macosx10.9 -I %t -module-cache-path %t/clang-module-cache -parse -show-diagnostics-after-fatal -verify
|
||||
// XFAIL: linux
|
||||
|
||||
// When run without the underlying SDK, we should get an error here.
|
||||
import ClangModuleWithAdapter // expected-error{{cannot load underlying module for 'ClangModuleWithAdapter'}}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -module-cache-path %t/clang-module-cache -I %S/Inputs/custom-modules %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
// Test the use of Objective-C categories on the value types that
|
||||
// bridge to Objective-C class types.
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -parse-as-library -verify -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: not %swift %clang-importer-sdk -parse -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 %s -debug-constraints 2> %t.out
|
||||
// RUN: FileCheck %s < %t.out
|
||||
// XFAIL: linux
|
||||
|
||||
import ObjectiveC
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -module-cache-path %t/clang-module-cache %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import AppKit
|
||||
import NotificationCenter
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -module-cache-path %t/clang-module-cache %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
// RUN: rm -rf %t/clang-module-cache
|
||||
// RUN: %swift %clang-importer-sdk -parse -module-cache-path %t/clang-module-cache -target x86_64-apple-macosx10.9 -I %S/Inputs/custom-modules -enable-objc-implicit-properties %s -verify
|
||||
// XFAIL: linux
|
||||
|
||||
import ObjectiveC
|
||||
import ObjCImplicitProperties
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user