Skip to content

Commit ed6abb0

Browse files
Add some debug code
1 parent 52bef97 commit ed6abb0

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Tests/SwiftDriverTests/ToolchainTests.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ import CRT
193193
try fs.createSymbolicLink(anotherSwiftFrontend, pointingAt: defaultSwiftFrontend, relative: false)
194194

195195
// test if SWIFT_DRIVER_TOOLNAME_EXEC is respected
196-
do {
196+
#expect(throws: Never.self) {
197197
var driver = try Driver.forTesting(args: ["swiftc", "-print-target-info"],
198198
env: [PATH: ProcessEnv.path!,
199199
SWIFT_FRONTEND_EXEC: customSwiftFrontend.pathString,
@@ -205,7 +205,7 @@ import CRT
205205
}
206206

207207
// test if tools directory is respected
208-
do {
208+
#expect(throws: Never.self) {
209209
var driver = try Driver.forTesting(args: ["swiftc", "-print-target-info", "-tools-directory", toolsDirectory.pathString],
210210
env: [PATH: tempDirectory.pathString, SWIFT_SCANNER_LIB: customSwiftScan.pathString],
211211
fileSystem: fs)
@@ -215,7 +215,7 @@ import CRT
215215
}
216216

217217
// test if current working directory is searched before PATH
218-
do {
218+
#expect(throws: Never.self) {
219219
#if os(Windows)
220220
let separator = ";"
221221
#else

0 commit comments

Comments
 (0)