[Lldb-commits] [lldb] r245750 - Fix TestPaths on Windows.
Zachary Turner via lldb-commits
lldb-commits at lists.llvm.org
Fri Aug 21 15:11:41 PDT 2015
Author: zturner
Date: Fri Aug 21 17:11:40 2015
New Revision: 245750
URL: http://llvm.org/viewvc/llvm-project?rev=245750&view=rev
Log:
Fix TestPaths on Windows.
Modified:
lldb/trunk/test/functionalities/paths/TestPaths.py
Modified: lldb/trunk/test/functionalities/paths/TestPaths.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/paths/TestPaths.py?rev=245750&r1=245749&r2=245750&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/paths/TestPaths.py (original)
+++ lldb/trunk/test/functionalities/paths/TestPaths.py Fri Aug 21 17:11:40 2015
@@ -39,8 +39,8 @@ class TestPaths(TestBase):
'''Test to check the path with double slash is handled correctly '''
# Create a path and see if lldb gets the directory and file right
fspec = lldb.SBFileSpec("C:\\dummy1\\dummy2//unknown_file", True);
- self.assertTrue (fspec.GetDirectory() == "C:/dummy1/dummy2");
- self.assertTrue (fspec.GetFilename() == "unknown_file");
+ self.assertEqual(os.path.normpath(fspec.GetDirectory()), os.path.normpath("C:/dummy1/dummy2"));
+ self.assertEqual(fspec.GetFilename(), "unknown_file");
if __name__ == '__main__':
import atexit
More information about the lldb-commits
mailing list