File tree 3 files changed +5
-20
lines changed
3 files changed +5
-20
lines changed Original file line number Diff line number Diff line change @@ -34,12 +34,7 @@ open class XCTest {
34
34
35
35
/// The test run object that executed the test, an instance of
36
36
/// testRunClass. If the test has not yet been run, this will be nil.
37
- /// - Note: FIXME: This property is meant to be `private(set)`. It is
38
- /// publicly settable for now due to a Swift compiler bug on Linux. To
39
- /// ensure compatibility of tests between swift-corelibs-xctest and Apple
40
- /// XCTest, you should not set this property. See
41
- /// https://bugs.swift.org/browse/SR-1129 for details.
42
- open open( set) var testRun : XCTestRun ? = nil
37
+ open private( set) var testRun : XCTestRun ? = nil
43
38
44
39
/// The method through which tests are executed. Must be overridden by
45
40
/// subclasses.
Original file line number Diff line number Diff line change @@ -41,22 +41,17 @@ open class XCTestCase: XCTest {
41
41
return _name
42
42
}
43
43
/// A private setter for the name of this test case.
44
- /// - Note: FIXME: This property should be readonly, but currently has to
45
- /// be publicly settable due to a Swift compiler bug on Linux. To ensure
46
- /// compatibility of tests between swift-corelibs-xctest and Apple XCTest,
47
- /// this property should not be modified. See
48
- /// https://bugs.swift.org/browse/SR-1129 for details.
49
- public var _name : String
44
+ private var _name : String
50
45
51
46
open override var testCaseCount : UInt {
52
47
return 1
53
48
}
54
49
55
50
/// The set of expectations made upon this test case.
56
- final internal var _allExpectations = [ XCTestExpectation] ( )
51
+ internal var _allExpectations = [ XCTestExpectation] ( )
57
52
58
53
/// An internal object implementing performance measurements.
59
- final internal var _performanceMeter : PerformanceMeter ?
54
+ internal var _performanceMeter : PerformanceMeter ?
60
55
61
56
open override var testRunClass : AnyClass ? {
62
57
return XCTestCaseRun . self
Original file line number Diff line number Diff line change @@ -27,12 +27,7 @@ open class XCTestSuite: XCTest {
27
27
return _name
28
28
}
29
29
/// A private setter for the name of this test suite.
30
- /// - Note: FIXME: This property should be readonly, but currently has to
31
- /// be publicly settable due to a Swift compiler bug on Linux. To ensure
32
- /// compatibility of tests between swift-corelibs-xctest and Apple XCTest,
33
- /// this property should not be modified. See
34
- /// https://bugs.swift.org/browse/SR-1129 for details.
35
- public let _name : String
30
+ private let _name : String
36
31
37
32
/// The number of test cases in this suite.
38
33
open override var testCaseCount : UInt {
You can’t perform that action at this time.
0 commit comments