File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed
stdlib/private/StdlibUnittest Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -448,12 +448,16 @@ let _crashedPrefix = "CRASHED:"
448
448
@_silgen_name ( " swift_stdlib_installTrapInterceptor " )
449
449
func _stdlib_installTrapInterceptor( )
450
450
451
+ #if _runtime(_ObjC)
451
452
@objc protocol _StdlibUnittestNSException {
452
- optional var name : String { get }
453
+ optional var name : AnyObject { get }
453
454
}
455
+ #endif
454
456
455
457
func _childProcess( ) {
456
458
_stdlib_installTrapInterceptor ( )
459
+
460
+ #if _runtime(_ObjC)
457
461
objc_setUncaughtExceptionHandler {
458
462
var stderr = _Stderr ( )
459
463
let maybeNSException = unsafeBitCast ( $0, to: _StdlibUnittestNSException. self)
@@ -466,6 +470,8 @@ func _childProcess() {
466
470
to: & stderr)
467
471
}
468
472
}
473
+ #endif
474
+
469
475
while let line = _stdlib_getline ( ) {
470
476
let parts = line. _split ( separator: " ; " )
471
477
let testSuiteName = parts [ 0 ]
You can’t perform that action at this time.
0 commit comments