stdlib tests: add import statements to prevent unresolved symbols when compiling StdlibUnittest with -sil-serialize-all.

rdar://problem/18917405
This commit is contained in:
Erik Eckstein
2015-11-19 15:13:45 -08:00
parent 5e7342633b
commit 308f39fe56
18 changed files with 132 additions and 0 deletions

View File

@@ -5,6 +5,13 @@
import SwiftPrivate
import StdlibUnittest
// Also import modules which are used by StdlibUnittest internally. This is
// needed to link all required libraries in case we serialize StdlibUnittest.
import SwiftPrivate
#if _runtime(_ObjC)
import ObjectiveC
#endif
var HashingTestSuite = TestSuite("Hashing")
func avalancheTest(bits: Int, _ hashUnderTest: (UInt64) -> UInt64, _ pValue: Double) {