Fix a bug in test_compiler_detection

AR wasn't reset in the environment, so this test could fail if more than one
language compiler was specified in the environment and the linker wasn't
'ar'
pull/4250/head
Jon Turney 6 years ago
parent c789efb8c8
commit e7bed74ae2
No known key found for this signature in database
GPG Key ID: C7C86F0370285C81
  1. 2
      run_unittests.py

@ -1696,6 +1696,8 @@ class AllPlatformTests(BasePlatformTests):
wrapperlinker_s += shlex.quote(w) + ' '
os.environ['AR'] = wrapperlinker_s
wlinker = env.detect_static_linker(wcc)
# Pop it so we don't use it for the next detection
evalue = os.environ.pop('AR')
# Must be the same type since it's a wrapper around the same exelist
self.assertIs(type(cc), type(wcc))
self.assertIs(type(linker), type(wlinker))

Loading…
Cancel
Save