@@ -112,7 +112,7 @@ class APIDigesterTests: XCTestCase {
112
112
" -output-file-map " , ofmPath. pathString,
113
113
] )
114
114
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 " ) ) ) ] ) )
116
116
}
117
117
}
118
118
do {
@@ -136,7 +136,7 @@ class APIDigesterTests: XCTestCase {
136
136
" -output-file-map " , ofmPath. pathString,
137
137
] )
138
138
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 " ) ) ) ] ) )
140
140
}
141
141
}
142
142
}
@@ -149,8 +149,8 @@ class APIDigesterTests: XCTestCase {
149
149
XCTAssertTrue ( digesterJob. commandLine. contains ( " -dump-sdk " ) )
150
150
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -module " , " foo " ] ) )
151
151
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 " ) ) ) ] ) )
154
154
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -F " , . path( . relative( . init( " framework/path " ) ) ) ] ) )
155
155
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . relative( . init( " foo.api.json " ) ) ) ] ) )
156
156
@@ -165,8 +165,8 @@ class APIDigesterTests: XCTestCase {
165
165
XCTAssertTrue ( digesterJob. commandLine. contains ( " -dump-sdk " ) )
166
166
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -module " , " foo " ] ) )
167
167
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 " ) ) ) ] ) )
170
170
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -F " , . path( . relative( . init( " framework/path " ) ) ) ] ) )
171
171
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -o " , . path( . relative( . init( " foo.abi.json " ) ) ) ] ) )
172
172
@@ -238,10 +238,10 @@ class APIDigesterTests: XCTestCase {
238
238
let digesterJob = try XCTUnwrap ( driver. planBuild ( ) . first { $0. kind == . compareAPIBaseline } )
239
239
XCTAssertTrue ( digesterJob. commandLine. contains ( " -diagnose-sdk " ) )
240
240
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 " ) ) ) ] ) )
242
242
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 " ) ) ) ] ) )
245
245
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -F " , . path( . relative( . init( " framework/path " ) ) ) ] ) )
246
246
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -breakage-allowlist-path " ,
247
247
. path( . relative( . init( " allowlist/path " ) ) ) ] ) )
@@ -257,7 +257,7 @@ class APIDigesterTests: XCTestCase {
257
257
" -digester-breakage-allowlist-path " , " allowlist/path " ] )
258
258
let digesterJob = try XCTUnwrap ( driver. planBuild ( ) . first { $0. kind == . compareABIBaseline } )
259
259
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 " ) ) ) ] ) )
261
261
XCTAssertTrue ( digesterJob. commandLine. contains ( subsequence: [ " -breakage-allowlist-path " ,
262
262
. path( . relative( . init( " allowlist/path " ) ) ) ] ) )
263
263
XCTAssertTrue ( digesterJob. commandLine. contains ( " -abi " ) )
0 commit comments