mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Serialization: Auto-linking recursively walks modules imported from -sil-serialize-all modules
This commit is contained in:
@@ -106,6 +106,9 @@ class SerializedASTFile final : public LoadedFile {
|
||||
SerializedASTFile(Module &M, ModuleFile &file, bool isSIB = false)
|
||||
: LoadedFile(FileUnitKind::SerializedAST, M), File(file), IsSIB(isSIB) {}
|
||||
|
||||
void
|
||||
collectLinkLibrariesFromImports(Module::LinkLibraryCallback callback) const;
|
||||
|
||||
public:
|
||||
bool isSIB() const { return IsSIB; }
|
||||
|
||||
|
||||
@@ -423,15 +423,24 @@ void SerializedASTFile::getImportedModules(
|
||||
File.getImportedModules(imports, filter);
|
||||
}
|
||||
|
||||
void SerializedASTFile::collectLinkLibrariesFromImports(
|
||||
Module::LinkLibraryCallback callback) const {
|
||||
llvm::SmallVector<Module::ImportedModule, 8> Imports;
|
||||
File.getImportedModules(Imports, Module::ImportFilter::All);
|
||||
|
||||
for (auto Import : Imports)
|
||||
Import.second->collectLinkLibraries(callback);
|
||||
}
|
||||
|
||||
void SerializedASTFile::collectLinkLibraries(
|
||||
Module::LinkLibraryCallback callback) const {
|
||||
if (isSIB()) {
|
||||
llvm::SmallVector<Module::ImportedModule, 8> Imports;
|
||||
File.getImportedModules(Imports, Module::ImportFilter::All);
|
||||
|
||||
for (auto Import : Imports)
|
||||
Import.second->collectLinkLibraries(callback);
|
||||
collectLinkLibrariesFromImports(callback);
|
||||
} else {
|
||||
if (File.getAssociatedModule()->getResilienceStrategy()
|
||||
== ResilienceStrategy::Fragile) {
|
||||
collectLinkLibrariesFromImports(callback);
|
||||
}
|
||||
File.collectLinkLibraries(callback);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -12,10 +12,3 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
@@ -3,12 +3,6 @@ add_swift_library(swiftStdlibUnittestFoundationExtras SHARED IS_STDLIB
|
||||
# filename.
|
||||
StdlibUnittestFoundationExtras.swift
|
||||
|
||||
# Cannot serialize StdlibUnittestFoundationExtras because of:
|
||||
# <rdar://problem/18917405> Compiling StdlibUnittest with -sil-serialize-all
|
||||
# crashes in SIL serializer
|
||||
#
|
||||
# SWIFT_COMPILE_FLAGS ${STDLIB_SIL_SERIALIZE_ALL}
|
||||
|
||||
SWIFT_MODULE_DEPENDS Foundation
|
||||
INSTALL_IN_COMPONENT stdlib-experimental)
|
||||
|
||||
|
||||
@@ -10,13 +10,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
%{
|
||||
# We test for bounds-checking traps for both reading and writing
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
import Foundation
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let BoolTests = TestSuite("Bool")
|
||||
|
||||
|
||||
@@ -21,13 +21,6 @@ import Swift
|
||||
import SwiftShims
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
#if _runtime(_ObjC)
|
||||
import Foundation
|
||||
|
||||
@@ -12,13 +12,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -18,12 +18,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let CastsTests = TestSuite("Casts")
|
||||
|
||||
|
||||
@@ -7,12 +7,6 @@ import StdlibUnittest
|
||||
import Swift
|
||||
import SwiftPrivate
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
//===---
|
||||
// Utilities.
|
||||
|
||||
@@ -9,14 +9,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
|
||||
var CharacterTraps = TestSuite("CharacterTraps")
|
||||
|
||||
|
||||
@@ -6,12 +6,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var CollectionTests = TestSuite("CollectionTests")
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -18,13 +18,6 @@ import SwiftExperimental
|
||||
import Foundation
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// Check that the generic parameters are called 'Key' and 'Value'.
|
||||
protocol TestProtocol1 {}
|
||||
|
||||
@@ -23,13 +23,6 @@ public extension _ObjectiveCBridgeable {
|
||||
}
|
||||
}
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
struct NotBridgedKeyTy : Equatable, Hashable {
|
||||
init(_ value: Int) {
|
||||
|
||||
@@ -6,13 +6,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var DictionaryUnchecked = TestSuite("DictionaryUnchecked")
|
||||
|
||||
|
||||
@@ -7,13 +7,6 @@ import Dispatch
|
||||
import Foundation
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
defer { runAllTests() }
|
||||
|
||||
|
||||
@@ -7,13 +7,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var NoisyCount = 0
|
||||
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ErrorProtocolTests = TestSuite("ErrorProtocol")
|
||||
|
||||
|
||||
@@ -4,13 +4,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
import CoreLocation
|
||||
|
||||
@@ -4,13 +4,6 @@
|
||||
import SwiftExperimental
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ExperimentalTestSuite = TestSuite("Experimental")
|
||||
|
||||
|
||||
@@ -14,13 +14,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let FilterTests = TestSuite("Filter")
|
||||
|
||||
|
||||
@@ -8,13 +8,6 @@
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
#if arch(i386) || arch(x86_64)
|
||||
|
||||
|
||||
@@ -38,13 +38,6 @@ if c === nil {
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Swift
|
||||
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Swift
|
||||
|
||||
|
||||
@@ -16,13 +16,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// Check that the generic parameter is called 'Bound'.
|
||||
protocol TestProtocol1 {}
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var IntervalTraps = TestSuite("IntervalTraps")
|
||||
|
||||
|
||||
@@ -17,13 +17,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -21,13 +21,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var mirrors = TestSuite("Mirrors")
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -12,13 +12,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
import StdlibUnittestFoundationExtras
|
||||
|
||||
@@ -17,13 +17,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
|
||||
|
||||
@@ -49,13 +49,6 @@ number_of_values = 23
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var tests = TestSuite("NumericParsing")
|
||||
|
||||
|
||||
@@ -30,13 +30,6 @@ struct PackagingOptions : OptionSet {
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var tests = TestSuite("OptionSet")
|
||||
|
||||
|
||||
@@ -4,13 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import Swift
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let OptionalTests = TestSuite("Optional")
|
||||
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
func returnNil() -> AnyObject? {
|
||||
return _opaqueIdentity(nil as AnyObject?)
|
||||
|
||||
@@ -8,13 +8,6 @@ import StdlibUnittest
|
||||
import Darwin
|
||||
#endif
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var POSIXTests = TestSuite("POSIXTests")
|
||||
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("Print")
|
||||
PrintTests.test("Metatype") {
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintArray")
|
||||
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintBoolean")
|
||||
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintClass")
|
||||
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintDictionary")
|
||||
|
||||
|
||||
@@ -10,12 +10,6 @@ import StdlibUnittest
|
||||
import Darwin
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintFloat")
|
||||
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintInteger")
|
||||
PrintTests.test("CustomStringConvertible") {
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintPointer")
|
||||
PrintTests.test("Printable") {
|
||||
|
||||
@@ -3,12 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintSet")
|
||||
PrintTests.test("Printable") {
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintString")
|
||||
PrintTests.test("Printable") {
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintStruct")
|
||||
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import PrintTestTypes
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let PrintTests = TestSuite("PrintTuple")
|
||||
PrintTests.test("Printable") {
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// Check that the generic parameter is called 'Element'.
|
||||
protocol TestProtocol1 {}
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var RangeTraps = TestSuite("RangeTraps")
|
||||
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var Reflection = TestSuite("Reflection")
|
||||
|
||||
|
||||
@@ -4,13 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import Swift
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
let RepeatTests = TestSuite("Repeat")
|
||||
RepeatTests.test("Attributes") {
|
||||
|
||||
@@ -8,12 +8,6 @@ import Swift
|
||||
import StdlibUnittest
|
||||
import SwiftShims
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
|
||||
var swiftObjectCanaryCount = 0
|
||||
|
||||
@@ -9,13 +9,6 @@
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import Foundation
|
||||
import CoreGraphics
|
||||
|
||||
@@ -6,13 +6,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import SceneKit
|
||||
|
||||
|
||||
@@ -9,13 +9,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var SetTraps = TestSuite("SetTraps")
|
||||
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
import StdlibUnittest
|
||||
import Foundation
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// FIXME: Should go into the standard library.
|
||||
public extension _ObjectiveCBridgeable {
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var StaticStringTestSuite = TestSuite("StaticString")
|
||||
|
||||
|
||||
@@ -16,13 +16,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// Check that the generic parameter is called 'Element'.
|
||||
protocol TestProtocol1 {}
|
||||
|
||||
@@ -10,16 +10,11 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
import Foundation
|
||||
import StdlibUnittestFoundationExtras
|
||||
#endif
|
||||
|
||||
|
||||
var StringTests = TestSuite("StringTests")
|
||||
|
||||
struct ComparisonTest {
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var StringOrderRelationTestSuite = TestSuite("StringOrderRelation")
|
||||
|
||||
|
||||
@@ -9,13 +9,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var StringTraps = TestSuite("StringTraps")
|
||||
|
||||
|
||||
@@ -7,12 +7,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var TupleTestSuite = TestSuite("Tuple")
|
||||
|
||||
|
||||
@@ -15,13 +15,6 @@
|
||||
import Swift
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var UnicodeInternals = TestSuite("UnicodeInternals")
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// Check that the generic parameter is called 'Instance'.
|
||||
protocol TestProtocol1 {}
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
protocol TestProtocol1 {}
|
||||
|
||||
|
||||
@@ -11,13 +11,6 @@
|
||||
import simd
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
% scalar_types = ['Float', 'Double', 'Int32', 'UInt32']
|
||||
% float_types = ['Float', 'Double']
|
||||
|
||||
@@ -10,13 +10,6 @@
|
||||
#endif
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var TGMathTestSuite = TestSuite("tgmath")
|
||||
|
||||
|
||||
@@ -17,13 +17,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var FunctionConversionTestSuite = TestSuite("FunctionConversion")
|
||||
|
||||
|
||||
@@ -7,13 +7,6 @@
|
||||
import Foundation
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
// rdar://problem/18884272
|
||||
// Make sure that NSObject conforms to NSObjectProtocol. This
|
||||
|
||||
@@ -20,13 +20,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import FakeUnavailableObjCFramework
|
||||
import Foundation
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import ctypes
|
||||
|
||||
|
||||
@@ -5,13 +5,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import ctypes
|
||||
|
||||
|
||||
@@ -14,13 +14,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import resilient_class
|
||||
import resilient_struct
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
enum ClericalErrorDomain: ErrorProtocol {
|
||||
case MisplacedDocument(name: String)
|
||||
|
||||
@@ -13,13 +13,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import resilient_enum
|
||||
import resilient_struct
|
||||
|
||||
@@ -7,13 +7,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
enum Excuse : ErrorProtocol { case CatAteHomework(LifetimeTracked) }
|
||||
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var FailableInitTestSuite = TestSuite("FailableInit")
|
||||
|
||||
|
||||
@@ -9,13 +9,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import resilient_global
|
||||
import resilient_struct
|
||||
|
||||
@@ -16,13 +16,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import resilient_protocol
|
||||
|
||||
|
||||
@@ -7,13 +7,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
import resilient_struct
|
||||
|
||||
|
||||
@@ -3,13 +3,6 @@
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ThrowingInitTestSuite = TestSuite("ThrowingInit")
|
||||
|
||||
|
||||
@@ -1302,13 +1302,6 @@ public func transform<C : Collection>(c: C)
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var t = TestSuite("t")
|
||||
|
||||
|
||||
@@ -1930,13 +1930,6 @@ extension MyBinaryTree : MyBidirectionalCollectionType {
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var NewCollection = TestSuite("NewCollection")
|
||||
|
||||
|
||||
@@ -1118,13 +1118,6 @@ public func ==(lhs: FloatingPointClassification, rhs: FloatingPointClassificatio
|
||||
//===--- tests ------------------------------------------------------------===//
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var tests = TestSuite("Floating Point")
|
||||
|
||||
|
||||
@@ -1284,13 +1284,6 @@ typealias UDWord = UInt${word_bits*2}
|
||||
|
||||
import StdlibUnittest
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
func expectEqual<T : FixedWidthInteger>(
|
||||
expected: T, _ actual: T,
|
||||
|
||||
@@ -5,14 +5,6 @@
|
||||
import StdlibUnittest
|
||||
import class_add_property
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ClassAddPropertyTest = TestSuite("ClassAddProperty")
|
||||
|
||||
|
||||
@@ -5,14 +5,6 @@
|
||||
import StdlibUnittest
|
||||
import class_change_size
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ClassChangeSizeTest = TestSuite("ClassChangeSize")
|
||||
|
||||
|
||||
@@ -4,14 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import class_change_stored_to_computed
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ChangeStoredToComputedTest = TestSuite("ChangeStoredToComputed")
|
||||
|
||||
|
||||
@@ -4,14 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import class_remove_property
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ClassRemovePropertyTest = TestSuite("ClassRemoveProperty")
|
||||
|
||||
|
||||
@@ -4,14 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import enum_add_cases
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var EnumAddCasesTest = TestSuite("EnumAddCases")
|
||||
|
||||
|
||||
@@ -4,14 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import enum_change_size
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var EnumChangeSizeTest = TestSuite("EnumChangeSize")
|
||||
|
||||
|
||||
@@ -7,14 +7,6 @@
|
||||
import StdlibUnittest
|
||||
import function_change_transparent_body
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var ChangeTransparentBodyTest = TestSuite("ChangeTransparentBody")
|
||||
|
||||
|
||||
@@ -4,14 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import global_change_size
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var GlobalChangeSizeTest = TestSuite("GlobalChangeSize")
|
||||
|
||||
|
||||
@@ -4,14 +4,6 @@
|
||||
import StdlibUnittest
|
||||
import global_stored_to_computed
|
||||
|
||||
// Also import modules which are used by StdlibUnittest internally. This
|
||||
// workaround is needed to link all required libraries in case we compile
|
||||
// StdlibUnittest with -sil-serialize-all.
|
||||
import SwiftPrivate
|
||||
import SwiftPrivatePthreadExtras
|
||||
#if _runtime(_ObjC)
|
||||
import ObjectiveC
|
||||
#endif
|
||||
|
||||
var GlobalStoredToComputed = TestSuite("GlobalStoredToComputed")
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user