Skip to content

Commit fb61cb5

Browse files
authored
Fix test_print_resource_dir on windows. NFC (#21997)
1 parent 4add03f commit fb61cb5

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

test/test_other.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -818,13 +818,15 @@ def test_print_libgcc_file_name(self, args):
818818
expected = os.path.join(libdir, 'libcompiler_rt.a')
819819
self.assertEqual(output.strip(), expected)
820820

821+
@crossplatform
821822
def test_print_resource_dir(self):
822823
output = self.run_process([EMCC, '-print-resource-dir'], stdout=PIPE).stdout
823824
print(output)
824825
lines = output.strip().splitlines()
825826
self.assertEqual(len(lines), 1)
826-
resource_dir = lines[0]
827-
self.assertContained(os.path.dirname(config.LLVM_ROOT), resource_dir)
827+
resource_dir = os.path.normcase(lines[0])
828+
llvm_root = os.path.normcase(os.path.dirname(config.LLVM_ROOT))
829+
self.assertContained(llvm_root, resource_dir)
828830

829831
@crossplatform
830832
@parameterized({

0 commit comments

Comments
 (0)