@@ -112,7 +112,7 @@ class APIDigesterTests: XCTestCase {
112112 " -output-file-map " , ofmPath. pathString,
113113 ] )
114114 let digesterJob = try XCTUnwrap ( driver. planBuild ( ) . first { $0. kind == . generateABIBaseline } )
115- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . absolute( . init( " /path/to/baseline.abi.json " ) ) ) ] ) )
115+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . absolute( . init( validating : " /path/to/baseline.abi.json " ) ) ) ] ) )
116116 }
117117 }
118118 do {
@@ -136,7 +136,7 @@ class APIDigesterTests: XCTestCase {
136136 " -output-file-map " , ofmPath. pathString,
137137 ] )
138138 let digesterJob = try XCTUnwrap ( driver. planBuild ( ) . first { $0. kind == . generateABIBaseline } )
139- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . absolute( . init( " /path/to/sourceinfo.abi.json " ) ) ) ] ) )
139+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . absolute( . init( validating : " /path/to/sourceinfo.abi.json " ) ) ) ] ) )
140140 }
141141 }
142142 }
@@ -149,8 +149,8 @@ class APIDigesterTests: XCTestCase {
149149 XCTAssertTrue ( digesterJob. commandLine. contains ( " -dump-sdk " ) )
150150 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -module " , " foo " ] ) )
151151 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . relative( . init( " . " ) ) ) ] ) )
152- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -sdk " , . path( . absolute( . init( " /path/to/sdk " ) ) ) ] ) )
153- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . absolute( . init( " /some/path " ) ) ) ] ) )
152+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -sdk " , . path( . absolute( . init( validating : " /path/to/sdk " ) ) ) ] ) )
153+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . absolute( . init( validating : " /some/path " ) ) ) ] ) )
154154 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -F " , . path( . relative( . init( " framework/path " ) ) ) ] ) )
155155 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . relative( . init( " foo.api.json " ) ) ) ] ) )
156156
@@ -165,8 +165,8 @@ class APIDigesterTests: XCTestCase {
165165 XCTAssertTrue ( digesterJob. commandLine. contains ( " -dump-sdk " ) )
166166 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -module " , " foo " ] ) )
167167 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . relative( . init( " . " ) ) ) ] ) )
168- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -sdk " , . path( . absolute( . init( " /path/to/sdk " ) ) ) ] ) )
169- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . absolute( . init( " /some/path " ) ) ) ] ) )
168+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -sdk " , . path( . absolute( . init( validating : " /path/to/sdk " ) ) ) ] ) )
169+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . absolute( . init( validating : " /some/path " ) ) ) ] ) )
170170 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -F " , . path( . relative( . init( " framework/path " ) ) ) ] ) )
171171 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . relative( . init( " foo.abi.json " ) ) ) ] ) )
172172
@@ -238,10 +238,10 @@ class APIDigesterTests: XCTestCase {
238238 let digesterJob = try XCTUnwrap ( driver. planBuild ( ) . first { $0. kind == . compareAPIBaseline } )
239239 XCTAssertTrue ( digesterJob. commandLine. contains ( " -diagnose-sdk " ) )
240240 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -module " , " foo " ] ) )
241- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -baseline-path " , . path( . absolute( . init( " /baseline/path " ) ) ) ] ) )
241+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -baseline-path " , . path( . absolute( . init( validating : " /baseline/path " ) ) ) ] ) )
242242 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . relative( . init( " . " ) ) ) ] ) )
243- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -sdk " , . path( . absolute( . init( " /path/to/sdk " ) ) ) ] ) )
244- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . absolute( . init( " /some/path " ) ) ) ] ) )
243+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -sdk " , . path( . absolute( . init( validating : " /path/to/sdk " ) ) ) ] ) )
244+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -I " , . path( . absolute( . init( validating : " /some/path " ) ) ) ] ) )
245245 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -F " , . path( . relative( . init( " framework/path " ) ) ) ] ) )
246246 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -breakage-allowlist-path " ,
247247 . path( . relative( . init( " allowlist/path " ) ) ) ] ) )
@@ -257,7 +257,7 @@ class APIDigesterTests: XCTestCase {
257257 " -digester-breakage-allowlist-path " , " allowlist/path " ] )
258258 let digesterJob = try XCTUnwrap ( driver. planBuild ( ) . first { $0. kind == . compareABIBaseline } )
259259 XCTAssertTrue ( digesterJob. commandLine. contains ( " -diagnose-sdk " ) )
260- XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -input-paths " , . path( . absolute( . init( " /baseline/path " ) ) ) ] ) )
260+ try XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -input-paths " , . path( . absolute( . init( validating : " /baseline/path " ) ) ) ] ) )
261261 XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -breakage-allowlist-path " ,
262262 . path( . relative( . init( " allowlist/path " ) ) ) ] ) )
263263 XCTAssertTrue ( digesterJob. commandLine. contains ( " -abi " ) )
0 commit comments