File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -1359,6 +1359,22 @@ final class SwiftDriverTests: XCTestCase {
1359
1359
}
1360
1360
1361
1361
func testRepl( ) throws {
1362
+ // Do not run this test if no LLDB is found in the toolchain.
1363
+ let executor = try SwiftDriverExecutor ( diagnosticsEngine: DiagnosticsEngine ( ) ,
1364
+ processSet: ProcessSet ( ) ,
1365
+ fileSystem: localFileSystem,
1366
+ env: ProcessEnv . vars)
1367
+ var toolchain : Toolchain
1368
+ #if os(macOS)
1369
+ toolchain = DarwinToolchain ( env: ProcessEnv . vars, executor: executor)
1370
+ #else
1371
+ toolchain = GenericUnixToolchain ( env: ProcessEnv . vars, executor: executor)
1372
+ #endif
1373
+ do {
1374
+ _ = try toolchain. getToolPath ( . lldb)
1375
+ } catch ToolchainError . unableToFind {
1376
+ return
1377
+ }
1362
1378
1363
1379
func isLLDBREPLFlag( _ arg: Job . ArgTemplate ) -> Bool {
1364
1380
if case . flag( let replString) = arg {
You can’t perform that action at this time.
0 commit comments