diff options
author | Alex Langford <apl@fb.com> | 2019-03-06 00:45:16 +0000 |
---|---|---|
committer | Alex Langford <apl@fb.com> | 2019-03-06 00:45:16 +0000 |
commit | 787fe33434f6886bfa7378c7d18f11f8b290394b (patch) | |
tree | 603ad1bb01f84d8ab5a8bbdb97e1e3f6cff7a4a7 /lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py | |
parent | 8f7caae00af070fb13416dbed207f3fe18e043e8 (diff) | |
download | bcm5719-llvm-787fe33434f6886bfa7378c7d18f11f8b290394b.tar.gz bcm5719-llvm-787fe33434f6886bfa7378c7d18f11f8b290394b.zip |
[ExpressionParser] Test GetClangResourceDir
Summary:
I'm doing this because I plan on implementing `ComputeClangResourceDirectory`
on windows so that `GetClangResourceDir` will work. Additionally, I made
test_paths make sure that the directory member of the returned FileSpec is not
none. This will fail on windows since `ComputeClangResourceDirectory` isn't
implemented yet.
Differential Revision: https://reviews.llvm.org/D58748
llvm-svn: 355463
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py b/lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py index 7fc9a743d32..96e1446c278 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/paths/TestPaths.py @@ -32,6 +32,15 @@ class TestPaths(TestBase): # No directory path types should have the filename set self.assertTrue(f.GetFilename() is None) + # TODO: Merge into test_path when GetClangResourceDir is implemented on + # windows + @expectedFailureAll(oslist=["windows"]) + @no_debug_info_test + def test_clang_dir_path(self): + '''Test to make sure clang dir is set correctly''' + clang_dir = lldb.SBHostOS.GetLLDBPath(lldb.ePathTypeClangDir) + self.assertFalse(clang_dir.GetDirectory() is None) + @no_debug_info_test def test_directory_doesnt_end_with_slash(self): current_directory_spec = lldb.SBFileSpec(os.path.curdir) |