File tree Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Expand file tree Collapse file tree 1 file changed +0
-16
lines changed Original file line number Diff line number Diff line change @@ -235,12 +235,8 @@ void XCTestMethod(XCTestCase* self, SEL _cmd) {
235
235
XCTAssertTrue (true );
236
236
return ;
237
237
} else if (result->Skipped ()) {
238
- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 130400 || \
239
- __TV_OS_VERSION_MAX_ALLOWED >= 130400 || \
240
- __MAC_OS_X_VERSION_MAX_ALLOWED >= 101504
241
238
// Let Xcode know that the test was skipped.
242
239
XCTSkip ();
243
- #endif
244
240
}
245
241
246
242
// Test failed :-(. Record the failure such that Xcode will navigate directly
@@ -251,9 +247,6 @@ void XCTestMethod(XCTestCase* self, SEL _cmd) {
251
247
const char * path = part.file_name () ? part.file_name () : " " ;
252
248
int line = part.line_number () > 0 ? part.line_number () : 0 ;
253
249
254
- #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 140000 || \
255
- __MAC_OS_X_VERSION_MAX_ALLOWED >= 101500
256
- // Xcode 12
257
250
auto * location = [[XCTSourceCodeLocation alloc ] initWithFilePath: @(path)
258
251
lineNumber: line];
259
252
auto * context = [[XCTSourceCodeContext alloc ] initWithLocation: location];
@@ -264,15 +257,6 @@ void XCTestMethod(XCTestCase* self, SEL _cmd) {
264
257
associatedError: nil
265
258
attachments: @[]];
266
259
[self recordIssue: issue];
267
-
268
- #else
269
- // Xcode 11 and prior. recordFailureWithDescription:inFile:atLine:expected:
270
- // is deprecated in Xcode 12.
271
- [self recordFailureWithDescription: @(part.message ())
272
- inFile: @(path)
273
- atLine: line
274
- expected: true ];
275
- #endif
276
260
}
277
261
}
278
262
You can’t perform that action at this time.
0 commit comments