Skip to content

Commit

Permalink
Remove false test: argv0 is xctest without runfiles on macos but not …
Browse files Browse the repository at this point in the history
…on linux
  • Loading branch information
cerisier committed Sep 18, 2024
1 parent 189a8fc commit 589c964
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions test/runfiles/RunfilesTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -129,21 +129,6 @@ final class RunfilesTests: XCTestCase {
))
}

func testFailsToCreateAnyRunfilesBecauseEnvvarsAreNotDefined() throws {

// Third case: Only TEST_SRCDIR is present
XCTAssertNil(try? Runfiles.create(
sourceRepository: BazelRunfilesConstants.currentRepository,
environment: ["TEST_SRCDIR": "always ignored"]
))

// Fourth case: Environment variables are not related to runfiles
XCTAssertNil(try? Runfiles.create(
sourceRepository: BazelRunfilesConstants.currentRepository,
environment: ["FOO": "bar"]
))
}

func testManifestBasedRlocation() throws {
let manifestContents = """
/Foo/runfile1
Expand Down

0 comments on commit 589c964

Please sign in to comment.