@@ -7277,14 +7277,10 @@ final class SwiftDriverTests: XCTestCase {
72777277
72787278  func  testRelativeResourceDir( )  throws  { 
72797279    do  { 
7280-       // Reset the environment to avoid 'SDKROOT' influencing the
7281-       // linux driver paths and taking the priority over the resource directory.
7282-       var  env  =  ProcessEnv . block
7283-       env [ " SDKROOT " ]  =  nil 
72847280      var  driver  =  try   Driver ( args:  [ " swiftc " , 
72857281                                     " -target " ,  " x86_64-unknown-linux " ,  " -lto=llvm-thin " , 
72867282                                     " foo.swift " , 
7287-                                      " -resource-dir " ,  " resource/dir " ] ,  env :  env ) 
7283+                                      " -resource-dir " ,  " resource/dir " ] ) 
72887284      let  plannedJobs  =  try   driver. planBuild ( ) . removingAutolinkExtractJobs ( ) 
72897285
72907286      let  compileJob  =  plannedJobs [ 0 ] 
@@ -7299,7 +7295,7 @@ final class SwiftDriverTests: XCTestCase {
72997295    } 
73007296  } 
73017297
7302-   func  testSDKDirLinuxPrioritizedOverRelativeResourceDirForLinkingSwiftRT ( )  throws  { 
7298+   func  testRelativeResourceDirLinuxPrioritizedOverSDKDirForLinkingSwiftRT ( )  throws  { 
73037299    do  { 
73047300      let  sdkRoot  =  try   testInputsPath. appending ( component:  " mock-sdk.sdk " ) 
73057301      var  env  =  ProcessEnv . block
@@ -7313,7 +7309,7 @@ final class SwiftDriverTests: XCTestCase {
73137309      XCTAssertEqual ( compileJob. kind,  . compile) 
73147310      let  linkJob  =  plannedJobs [ 1 ] 
73157311      XCTAssertEqual ( linkJob. kind,  . link) 
7316-       try   XCTAssertJobInvocationMatches ( linkJob,  toPathOption ( sdkRoot . pathString  +   " /usr/lib/swift/ linux/x86_64/swiftrt.o" ,  isRelative :   false ) ) 
7312+       try   XCTAssertJobInvocationMatches ( linkJob,  toPathOption ( " resource/dir/ linux/x86_64/swiftrt.o" ) ) 
73177313    } 
73187314  } 
73197315
0 commit comments