File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
IntegrationTests/Tests/Utility Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -100,7 +100,15 @@ extension XCTestCase {
100100 let standardErrorString = String ( data: standardErrorData, encoding: . utf8) ?? " "
101101
102102
103+
104+
105+ print ( """
106+ 🐛 Checking if we should skip this test:
107+ process.terminationStatus != 0 \( process. terminationStatus != 0 ? " YES " : " NO " )
108+ standardErrorString.contains( " <unknown>:0: error: unknown argument: " ) \( standardErrorString. contains ( " <unknown>:0: error: unknown argument: " ) ? " YES " : " NO " )
109+ """ )
103110 if process. terminationStatus != 0 , standardErrorString. contains ( " <unknown>:0: error: unknown argument: " ) {
111+ print ( " 🐛 Skipping this test " )
104112 throw XCTSkip ( " Skipping integration tests due to rdar://134406349 " )
105113 }
106114
@@ -209,9 +217,16 @@ struct SwiftInvocationResult {
209217
210218 func assertExitStatusEquals(
211219 _ expectedExitStatus: Int ,
220+ testName: StaticString = #function,
212221 file: StaticString = #file,
213222 line: UInt = #line
214223 ) {
224+ print ( """
225+ 🐞 Did not skip \( testName)
226+ exitStatus != 0 \( exitStatus != 0 ? " YES " : " NO " )
227+ standardError.contains( " <unknown>:0: error: unknown argument: " ) \( standardError. contains ( " <unknown>:0: error: unknown argument: " ) ? " YES " : " NO " )
228+ """ )
229+
215230 let environmentInfo = (
216231 try ? gatherShellEnvironmentInfo ( )
217232 ) ?? " failed to gather environment information "
You can’t perform that action at this time.
0 commit comments