@@ -7159,14 +7159,10 @@ final class SwiftDriverTests: XCTestCase {
71597159
71607160  func  testRelativeResourceDir( )  throws  { 
71617161    do  { 
7162-       // Reset the environment to avoid 'SDKROOT' influencing the
7163-       // linux driver paths and taking the priority over the resource directory.
7164-       var  env  =  ProcessEnv . vars
7165-       env [ " SDKROOT " ]  =  nil 
71667162      var  driver  =  try Driver ( args:  [ " swiftc " , 
71677163                                     " -target " ,  " x86_64-unknown-linux " ,  " -lto=llvm-thin " , 
71687164                                     " foo.swift " , 
7169-                                      " -resource-dir " ,  " resource/dir " ] ,  env :  env ) 
7165+                                      " -resource-dir " ,  " resource/dir " ] ) 
71707166      let  plannedJobs  =  try . planBuild ( ) . removingAutolinkExtractJobs ( ) 
71717167
71727168      let  compileJob  =  plannedJobs [ 0 ] 
@@ -7181,7 +7177,7 @@ final class SwiftDriverTests: XCTestCase {
71817177    } 
71827178  } 
71837179
7184-   func  testSDKDirLinuxPrioritizedOverRelativeResourceDirForLinkingSwiftRT ( )  throws  { 
7180+   func  testRelativeResourceDirLinuxPrioritizedOverSDKDirForLinkingSwiftRT ( )  throws  { 
71857181    do  { 
71867182      let  sdkRoot  =  try . appending ( component:  " mock-sdk.sdk " ) 
71877183      var  env  =  ProcessEnv . vars
@@ -7195,7 +7191,7 @@ final class SwiftDriverTests: XCTestCase {
71957191      XCTAssertEqual ( compileJob. kind,  . compile) 
71967192      let  linkJob  =  plannedJobs [ 1 ] 
71977193      XCTAssertEqual ( linkJob. kind,  . link) 
7198-       try XCTAssertJobInvocationMatches ( linkJob,  toPathOption ( sdkRoot . pathString  +   " /usr/lib/swift/ linux/x86_64/swiftrt.o" ,  isRelative :   false ) ) 
7194+       try XCTAssertJobInvocationMatches ( linkJob,  toPathOption ( " resource/dir/ linux/x86_64/swiftrt.o" ) ) 
71997195    } 
72007196  } 
72017197
0 commit comments