diff options
| -rw-r--r-- | lldb/test/functionalities/platform/TestPlatformCommand.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lldb/test/functionalities/platform/TestPlatformCommand.py b/lldb/test/functionalities/platform/TestPlatformCommand.py index ab88b25038e..25406429ef9 100644 --- a/lldb/test/functionalities/platform/TestPlatformCommand.py +++ b/lldb/test/functionalities/platform/TestPlatformCommand.py @@ -33,8 +33,10 @@ class PlatformCommandTestCase(TestBase): def test_shell(self): """ Test that the platform shell command can invoke ls. """ - self.expect("platform shell ls /", - substrs = ["dev", "tmp", "usr"]) + if sys.platform.startswith("win32"): + self.expect("platform shell dir c:\\", substrs = ["Windows", "Program Files"]) + else: + self.expect("platform shell ls /", substrs = ["dev", "tmp", "usr"]) def test_shell_builtin(self): """ Test a shell built-in command (echo) """ |

