   }
 
   func testNoInputs() throws {
-    do {
-      var driver = try Driver(args: ["swift"])
-      XCTAssertNoThrow(try driver.planBuild())
+    // A plain `swift` invocation requires lldb to be present
+    if try testEnvHasLLDB() {
+      do {
+        var driver = try Driver(args: ["swift"])
+        XCTAssertNoThrow(try driver.planBuild())
+      }
     }
     do {
       var driver = try Driver(args: ["swiftc"])

import XCTest

final class SwiftDriverTests: XCTestCase {

  func testInvocationRunModes() throws {



  func testRepl() throws {
    // Do not run this test if no LLDB is found in the toolchain.
    if try !testEnvHasLLDB() {
      throw XCTSkip()
    }

    func isLLDBREPLFlag(_ arg: Job.ArgTemplate) -> Bool {
