Update test and validation-test flags for linux.

Swift SVN r25506
This commit is contained in:
Graham Batty
2015-02-24 18:55:42 +00:00
parent 9dca554a79
commit 7346a9733d
65 changed files with 134 additions and 0 deletions

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-simple-swift | FileCheck %s // RUN: %target-run-simple-swift | FileCheck %s
// XFAIL: linux
var x : Int! = .None var x : Int! = .None
if x != nil { if x != nil {
println("x is non-empty!") println("x is non-empty!")

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-simple-swift | FileCheck %s // RUN: %target-run-simple-swift | FileCheck %s
// XFAIL: linux
var x : Optional<Int> = nil var x : Optional<Int> = nil
if x != nil { if x != nil {
println("x is non-empty!") println("x is non-empty!")

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil %s | FileCheck %s // RUN: %target-swift-frontend(mock-sdk: %clang-importer-sdk) -emit-sil %s | FileCheck %s
// XFAIL: linux
import ctypes import ctypes
struct S { struct S {
let a: Int let a: Int

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// https://twitter.com/nuoji/status/507991706294558721 // https://twitter.com/nuoji/status/507991706294558721

View File

@@ -1,5 +1,7 @@
// RUN: not --crash %target-swift-frontend %s -emit-ir // RUN: not --crash %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// http://www.openradar.me/18349699 // http://www.openradar.me/18349699

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -parse // RUN: %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup) // Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// https://devforums.apple.com/message/1051132 // https://devforums.apple.com/message/1051132

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-silgen // RUN: %target-swift-frontend %s -emit-silgen
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by http://github.com/martijnwalraven (Martijn Walraven) // Test case submitted to project by http://github.com/martijnwalraven (Martijn Walraven)
// rdar://18662915 // rdar://18662915

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// rdar://18633758 // rdar://18633758

View File

@@ -1,5 +1,7 @@
// RUN: not --crash %target-swift-frontend %s -parse // RUN: not --crash %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: not %target-swift-frontend %s -parse // RUN: not %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: not --crash %target-swift-frontend %s -parse // RUN: not --crash %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: not %target-swift-frontend %s -parse // RUN: not %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// rdar://18706056 // rdar://18706056

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// http://www.openradar.me/18756378 // http://www.openradar.me/18756378

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/fluidsonic (Marc Knaup) // Test case submitted to project by https://github.com/fluidsonic (Marc Knaup)

View File

@@ -1,5 +1,7 @@
// RUN: not %target-swift-frontend %s -parse // RUN: not %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-silgen // RUN: %target-swift-frontend %s -emit-silgen
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)

View File

@@ -1,5 +1,7 @@
// RUN: not %target-swift-frontend %s -parse // RUN: not %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: not --crash %target-swift-frontend %s -parse // RUN: not --crash %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,4 +1,6 @@
// RUN: not --crash %target-swift-frontend %s -parse // RUN: not --crash %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// XFAIL: asan // XFAIL: asan
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license

View File

@@ -1,5 +1,7 @@
// RUN: not %target-swift-frontend %s -parse // RUN: not %target-swift-frontend %s -parse
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/practicalswift (practicalswift) // Test case submitted to project by https://github.com/practicalswift (practicalswift)
// Test case found by fuzzing // Test case found by fuzzing

View File

@@ -1,5 +1,7 @@
// RUN: %target-swift-frontend %s -emit-ir // RUN: %target-swift-frontend %s -emit-ir
// REQUIRES: objc_interop
// Distributed under the terms of the MIT license // Distributed under the terms of the MIT license
// Test case submitted to project by https://github.com/mattdaw (Matt Daw) // Test case submitted to project by https://github.com/mattdaw (Matt Daw)

View File

@@ -14,6 +14,8 @@ for id in $(seq 0 $process_id_max); do
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=$process_count -ast-verifier-process-id=$id > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=$process_count -ast-verifier-process-id=$id > /dev/null
// XFAIL: linux
__EOF__ __EOF__
done done

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=0 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=0 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=1 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=1 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=10 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=10 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=11 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=11 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=12 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=12 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=13 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=13 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=14 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=14 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=15 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=15 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=16 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=16 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=2 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=2 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=3 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=3 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=4 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=4 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=5 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=5 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=6 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=6 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=7 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=7 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=8 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=8 > /dev/null
// XFAIL: linux

View File

@@ -6,3 +6,5 @@
// RUN: rm -f %t.* // RUN: rm -f %t.*
// RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil // RUN: %target-sil-opt -sil-disable-ast-dump -verify %platform-module-dir/Swift.swiftmodule -module-name=Swift -o %t.sil
// RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=9 > /dev/null // RUN: %target-sil-opt %t.sil -ast-verifier-process-count=17 -ast-verifier-process-id=9 > /dev/null
// XFAIL: linux

View File

@@ -1,5 +1,6 @@
// RUN: %target-run-simple-swift // RUN: %target-run-simple-swift
// XFAIL: linux
protocol MyClassDelegate: class { protocol MyClassDelegate: class {
func didFindCureForCancer() func didFindCureForCancer()

View File

@@ -9,6 +9,8 @@
// RUN: %target-build-swift -Xfrontend -disable-access-control -I %S/Inputs/SlurpFastEnumeration/ %t/main.swift %S/Inputs/DictionaryKeyValueTypes.swift -Xlinker %t/SlurpFastEnumeration.o -o %t.out -O // RUN: %target-build-swift -Xfrontend -disable-access-control -I %S/Inputs/SlurpFastEnumeration/ %t/main.swift %S/Inputs/DictionaryKeyValueTypes.swift -Xlinker %t/SlurpFastEnumeration.o -o %t.out -O
// RUN: %target-run %t.out // RUN: %target-run %t.out
// REQUIRES: objc_interop
import StdlibUnittest import StdlibUnittest
import Foundation import Foundation
import SlurpFastEnumeration import SlurpFastEnumeration

View File

@@ -8,6 +8,8 @@
// RUN: %target-run %t/Assert_Release // RUN: %target-run %t/Assert_Release
// RUN: %target-run %t/Assert_Unchecked // RUN: %target-run %t/Assert_Unchecked
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
//===--- //===---

View File

@@ -4,6 +4,8 @@
// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out -O // RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out -O
// RUN: %target-run %t.out // RUN: %target-run %t.out
// XFAIL: linux
import Swift import Swift
import StdlibUnittest import StdlibUnittest

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-simple-swift // RUN: %target-run-simple-swift
// REQUIRES: objc_interop
import StdlibUnittest import StdlibUnittest
import CoreAudio import CoreAudio

View File

@@ -9,6 +9,8 @@
// RUN: %target-build-swift -Xfrontend -disable-access-control -I %S/Inputs/SlurpFastEnumeration/ %t/main.swift %S/Inputs/DictionaryKeyValueTypes.swift -Xlinker %t/SlurpFastEnumeration.o -o %t.out -O // RUN: %target-build-swift -Xfrontend -disable-access-control -I %S/Inputs/SlurpFastEnumeration/ %t/main.swift %S/Inputs/DictionaryKeyValueTypes.swift -Xlinker %t/SlurpFastEnumeration.o -o %t.out -O
// RUN: %target-run %t.out // RUN: %target-run %t.out
// REQUIRES: objc_interop
import StdlibUnittest import StdlibUnittest
import Foundation import Foundation
import SlurpFastEnumeration import SlurpFastEnumeration

View File

@@ -2,6 +2,8 @@
// RUN: %S/../../utils/line-directive %t/FixedPoint.swift -- %target-build-swift %t/FixedPoint.swift -o %t/a.out // RUN: %S/../../utils/line-directive %t/FixedPoint.swift -- %target-build-swift %t/FixedPoint.swift -o %t/a.out
// RUN: %S/../../utils/line-directive %t/FixedPoint.swift -- %target-run %t/a.out // RUN: %S/../../utils/line-directive %t/FixedPoint.swift -- %target-run %t/a.out
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
var FixedPoint = TestSuite("FixedPoint") var FixedPoint = TestSuite("FixedPoint")

View File

@@ -7,6 +7,8 @@
// RUN: %S/../../utils/line-directive %t/FixedPointArithmeticTraps.swift -- %target-run %t/a.out_Debug // RUN: %S/../../utils/line-directive %t/FixedPointArithmeticTraps.swift -- %target-run %t/a.out_Debug
// RUN: %S/../../utils/line-directive %t/FixedPointArithmeticTraps.swift -- %target-run %t/a.out_Release // RUN: %S/../../utils/line-directive %t/FixedPointArithmeticTraps.swift -- %target-run %t/a.out_Release
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
// Note: in this file, we need to go through opaque functions to load // Note: in this file, we need to go through opaque functions to load

View File

@@ -7,6 +7,8 @@
// RUN: %S/../../utils/line-directive %t/FloatingPointConversionTraps.swift -- %target-run %t/a.out_Debug // RUN: %S/../../utils/line-directive %t/FloatingPointConversionTraps.swift -- %target-run %t/a.out_Debug
// RUN: %S/../../utils/line-directive %t/FloatingPointConversionTraps.swift -- %target-run %t/a.out_Release // RUN: %S/../../utils/line-directive %t/FloatingPointConversionTraps.swift -- %target-run %t/a.out_Release
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
%{ %{

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-stdlib-swift // RUN: %target-run-stdlib-swift
// XFAIL: linux
import Swift import Swift
import StdlibUnittest import StdlibUnittest

View File

@@ -1,6 +1,8 @@
// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out -O // RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out -O
// RUN: %target-run %t.out // RUN: %target-run %t.out
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
var HashingTestSuite = TestSuite("Hashing") var HashingTestSuite = TestSuite("Hashing")

View File

@@ -1,4 +1,7 @@
// RUN: %target-run-simple-swift // RUN: %target-run-simple-swift
// REQUIRES: objc_interop
/* /*
<rdar://problem/14196462> Hashing in the standard library <rdar://problem/14196462> Hashing in the standard library

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-simple-swift | FileCheck %s // RUN: %target-run-simple-swift | FileCheck %s
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
_setOverrideOSVersion(.OSX(major: 10, minor: 9, bugFix: 3)) _setOverrideOSVersion(.OSX(major: 10, minor: 9, bugFix: 3))

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-simple-swift 2>&1 | FileCheck %s // RUN: %target-run-simple-swift 2>&1 | FileCheck %s
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
_setOverrideOSVersion(.OSX(major: 10, minor: 9, bugFix: 3)) _setOverrideOSVersion(.OSX(major: 10, minor: 9, bugFix: 3))

View File

@@ -2,6 +2,8 @@
// RUN: %target-run %t.out --stdlib-unittest-filter abc | FileCheck --check-prefix=CHECK-ABC %s // RUN: %target-run %t.out --stdlib-unittest-filter abc | FileCheck --check-prefix=CHECK-ABC %s
// RUN: %target-run %t.out --stdlib-unittest-filter xyz | FileCheck --check-prefix=CHECK-XYZ %s // RUN: %target-run %t.out --stdlib-unittest-filter xyz | FileCheck --check-prefix=CHECK-XYZ %s
// XFAIL: linux
// CHECK-ABC: StdlibUnittest: using filter: abc{{$}} // CHECK-ABC: StdlibUnittest: using filter: abc{{$}}
// CHECK-ABC: [ RUN ] Filter.abc{{$}} // CHECK-ABC: [ RUN ] Filter.abc{{$}}
// CHECK-ABC: [ OK ] Filter.abc{{$}} // CHECK-ABC: [ OK ] Filter.abc{{$}}

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-stdlib-swift | FileCheck %s // RUN: %target-run-stdlib-swift | FileCheck %s
// XFAIL: linux
import Swift import Swift
import StdlibUnittest import StdlibUnittest

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-stdlib-swift | FileCheck %s // RUN: %target-run-stdlib-swift | FileCheck %s
// XFAIL: linux
import Swift import Swift
import StdlibUnittest import StdlibUnittest

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-simple-swift | FileCheck %s // RUN: %target-run-simple-swift | FileCheck %s
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
// //

View File

@@ -1,6 +1,8 @@
// RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out // RUN: %target-build-swift -Xfrontend -disable-access-control -module-name a %s -o %t.out
// RUN: %target-run %t.out | FileCheck %s // RUN: %target-run %t.out | FileCheck %s
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
_setTestSuiteFailedCallback() { println("abort()") } _setTestSuiteFailedCallback() { println("abort()") }

View File

@@ -1,5 +1,7 @@
// RUN: %target-run-stdlib-swift // RUN: %target-run-stdlib-swift
// XFAIL: linux
import Swift import Swift
import StdlibUnittest import StdlibUnittest
import Dispatch import Dispatch

View File

@@ -1,5 +1,8 @@
// RUN: %target-run-simple-swift // RUN: %target-run-simple-swift
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
import Foundation import Foundation

View File

@@ -14,6 +14,9 @@
// RUN: %S/../../utils/line-directive %t/UnicodeTrie.swift -- %target-build-swift %t/UnicodeTrie.swift -o %t/a.out -g -Xfrontend -disable-access-control // RUN: %S/../../utils/line-directive %t/UnicodeTrie.swift -- %target-build-swift %t/UnicodeTrie.swift -o %t/a.out -g -Xfrontend -disable-access-control
// RUN: %S/../../utils/line-directive %t/UnicodeTrie.swift -- %target-run %t/a.out // RUN: %S/../../utils/line-directive %t/UnicodeTrie.swift -- %target-run %t/a.out
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux
%{ %{
from GYBUnicodeDataUtils import * from GYBUnicodeDataUtils import *

View File

@@ -1,5 +1,8 @@
// RUN: %target-run-simple-swift // RUN: %target-run-simple-swift
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux
import StdlibUnittest import StdlibUnittest
import Foundation import Foundation

View File

@@ -1,5 +1,8 @@
// RUN: %target-parse-verify-swift // RUN: %target-parse-verify-swift
// FIXME: rdar://problem/19648117 Needs splitting objc parts out
// XFAIL: linux
func test_UnsafePointer_null() { func test_UnsafePointer_null() {
let ptr1 = UnsafePointer<Int>.null() let ptr1 = UnsafePointer<Int>.null()
// expected-error@-1 {{'null()' is unavailable: use 'nil' literal instead}} // expected-error@-1 {{'null()' is unavailable: use 'nil' literal instead}}