Skip to content

Commit 4a55c98

Browse files
[lldb] Normalize paths in new test
The minidump-sysroot test I added in commit 20f8425 compares two paths using a string comparison. This causes the Windows buildbot to fail because of mismatched forward slashes and backslashes. Use os.path.normcase to normalize before comparing.
1 parent af1d3e6 commit 4a55c98

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

lldb/test/API/functionalities/postmortem/minidump-new/TestMiniDumpNew.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -479,5 +479,6 @@ def test_minidump_sysroot(self):
479479
# Check that we loaded the module from the sysroot
480480
self.assertEqual(self.target.GetNumModules(), 1)
481481
module = self.target.GetModuleAtIndex(0)
482-
spec = module.GetFileSpec()
483-
self.assertEqual(spec.GetDirectory(), exe_dir)
482+
spec_dir_norm = os.path.normcase(module.GetFileSpec().GetDirectory())
483+
exe_dir_norm = os.path.normcase(exe_dir)
484+
self.assertEqual(spec_dir_norm, exe_dir_norm)

0 commit comments

Comments
 (0)