summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2014-12-08 21:50:05 +0000
committerZachary Turner <zturner@google.com>2014-12-08 21:50:05 +0000
commit57ee6d67ccbfcb5a53eb7e110b6a517ef58fd4f2 (patch)
treebd0c9cda3a1634f931b2305047554eed9df08906
parent0b7fad656bc574e681b46c992e1a11828b9d2bc2 (diff)
downloadbcm5719-llvm-57ee6d67ccbfcb5a53eb7e110b6a517ef58fd4f2.tar.gz
bcm5719-llvm-57ee6d67ccbfcb5a53eb7e110b6a517ef58fd4f2.zip
Fix platform shell test to run "dir c:\" instead of "ls /" on Windows.
llvm-svn: 223700
-rw-r--r--lldb/test/functionalities/platform/TestPlatformCommand.py6
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) """
OpenPOWER on IntegriCloud