File tree Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Expand file tree Collapse file tree 2 files changed +24
-9
lines changed Original file line number Diff line number Diff line change 11PLATFORM_IOS = iOS Simulator,name=iPhone 11 Pro Max
22PLATFORM_MACOS = macOS
3+ PLATFORM_MAC_CATALYST = macOS,variant=Mac Catalyst
34PLATFORM_TVOS = tvOS Simulator,name=Apple TV 4K (at 1080p)
45PLATFORM_WATCHOS = watchOS Simulator,name=Apple Watch Series 4 - 44mm
56
@@ -36,6 +37,14 @@ test-platforms:
3637 -configuration Release \
3738 -destination platform="$(PLATFORM_MACOS)"
3839
40+ xcodebuild test \
41+ -scheme swift-custom-dump \
42+ -destination platform="$(PLATFORM_MAC_CATALYST)"
43+ xcodebuild \
44+ -scheme swift-custom-dump \
45+ -configuration Release \
46+ -destination platform="$(PLATFORM_MAC_CATALYST)"
47+
3948 xcodebuild test \
4049 -scheme swift-custom-dump \
4150 -destination platform="$(PLATFORM_TVOS)"
Original file line number Diff line number Diff line change @@ -715,12 +715,6 @@ final class DumpTests: XCTestCase {
715715 )
716716 }
717717
718- class SubclassedError : NSError { }
719-
720- enum BridgedError : Error {
721- case thisIsFine( Int )
722- }
723-
724718 func testFoundation( ) {
725719 var dump = " "
726720
@@ -932,6 +926,9 @@ final class DumpTests: XCTestCase {
932926 """
933927 )
934928
929+ #if !os(Windows)
930+ class SubclassedError : NSError { }
931+
935932 dump = " "
936933 customDump (
937934 SubclassedError (
@@ -955,23 +952,32 @@ final class DumpTests: XCTestCase {
955952 )
956953 """
957954 )
955+ #endif
956+
957+ enum BridgedError : Error {
958+ case thisIsFine( Int )
959+ }
958960
959961 dump = " "
960962 customDump ( BridgedError . thisIsFine ( 94 ) as NSError , to: & dump)
961963 #if os(iOS) || os(macOS) || os(tvOS) || os(watchOS)
962964 XCTAssertNoDifference (
963965 dump,
964966 """
965- DumpTests.BridgedError.thisIsFine(94)
967+ DumpTests.(unknown context).(unknown context). BridgedError.thisIsFine(94)
966968 """
967969 )
968970 #else
969971 // Can't unwrap bridged Errors on Linux: https://bugs.swift.org/browse/SR-15191
970972 XCTAssertNoDifference (
971- dump,
973+ dump. replacingOccurrences (
974+ of: #"\(unknown context at \$[[:xdigit:]]+\)"# ,
975+ with: " (unknown context) " ,
976+ options: . regularExpression
977+ ) ,
972978 """
973979 NSError(
974- domain: " CustomDumpTests.DumpTests.BridgedError " ,
980+ domain: " CustomDumpTests.DumpTests.(unknown context).(unknown context). BridgedError " ,
975981 code: 0,
976982 userInfo: [:]
977983 )
You can’t perform that action at this time.
0 commit comments