File tree Expand file tree Collapse file tree 4 files changed +16
-45
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 4 files changed +16
-45
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,6 @@ add_swift_target_library(swiftStdlibUnittest ${SWIFT_STDLIB_LIBRARY_BUILD_TYPES}
29
29
StringConvertible.swift
30
30
TestHelpers.swift
31
31
TypeIndexed.swift
32
- GetOSVersion.mm
33
32
34
33
SWIFT_MODULE_DEPENDS SwiftPrivate SwiftPrivateThreadExtras SwiftPrivateLibcExtras
35
34
SWIFT_MODULE_DEPENDS_IOS Darwin Foundation
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ import SwiftPrivateThreadExtras
16
16
import SwiftPrivateLibcExtras
17
17
18
18
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
19
+ import Foundation
19
20
import Darwin
20
21
#elseif os(Linux) || os(FreeBSD) || os(PS4) || os(Android) || os(Cygwin) || os(Haiku)
21
22
import Glibc
@@ -1714,13 +1715,8 @@ public final class TestSuite {
1714
1715
}
1715
1716
1716
1717
#if os(macOS) || os(iOS) || os(watchOS) || os(tvOS)
1717
- @_silgen_name ( " getSystemVersionPlistProperty " )
1718
- func _getSystemVersionPlistPropertyImpl(
1719
- _ propertyName: UnsafePointer < CChar > ) -> UnsafePointer < CChar > ?
1720
-
1721
1718
func _getSystemVersionPlistProperty( _ propertyName: String ) -> String ? {
1722
- let cs = _getSystemVersionPlistPropertyImpl ( propertyName)
1723
- return cs. map ( String . init ( cString: ) )
1719
+ return NSDictionary ( contentsOfFile: " /System/Library/CoreServices/SystemVersion.plist " ) ? [ propertyName] as? String
1724
1720
}
1725
1721
#endif
1726
1722
Original file line number Diff line number Diff line change
1
+ // RUN: %target-run-simple-swift
2
+ // REQUIRES: executable_test
3
+ // REQUIRES: foundation
4
+
5
+ import Foundation
6
+ import StdlibUnittest
7
+
8
+ var Suite = TestSuite ( " Overrelease " )
9
+
10
+ Suite . test ( " doesntfail " ) . xfail ( . never) . code { }
11
+
12
+ autoreleasepool {
13
+ runAllTests ( )
14
+ }
You can’t perform that action at this time.
0 commit comments