diff options
Diffstat (limited to 'lldb/test/functionalities/paths/TestPaths.py')
| -rw-r--r-- | lldb/test/functionalities/paths/TestPaths.py | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lldb/test/functionalities/paths/TestPaths.py b/lldb/test/functionalities/paths/TestPaths.py index 5bea01a8296..c4bafa0ac6c 100644 --- a/lldb/test/functionalities/paths/TestPaths.py +++ b/lldb/test/functionalities/paths/TestPaths.py @@ -27,7 +27,14 @@ class TestPaths(TestBase): f = lldb.SBHostOS.GetLLDBPath(path_type); # No directory path types should have the filename set self.assertTrue (f.GetFilename() == None); - + + @unittest2.skipUnless(sys.platform.startswith("win32"), "Test for windows only") + def test_windows_double_slash (self): + '''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"); if __name__ == '__main__': import atexit |

