[Lldb-commits] [lldb] r223700 - Fix platform shell test to run "dir c:\" instead of "ls /" on Windows.
Zachary Turner
zturner at google.com
Mon Dec 8 13:50:05 PST 2014
Author: zturner
Date: Mon Dec 8 15:50:05 2014
New Revision: 223700
URL: http://llvm.org/viewvc/llvm-project?rev=223700&view=rev
Log:
Fix platform shell test to run "dir c:\" instead of "ls /" on Windows.
Modified:
lldb/trunk/test/functionalities/platform/TestPlatformCommand.py
Modified: lldb/trunk/test/functionalities/platform/TestPlatformCommand.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/platform/TestPlatformCommand.py?rev=223700&r1=223699&r2=223700&view=diff
==============================================================================
--- lldb/trunk/test/functionalities/platform/TestPlatformCommand.py (original)
+++ lldb/trunk/test/functionalities/platform/TestPlatformCommand.py Mon Dec 8 15:50:05 2014
@@ -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) """
More information about the lldb-commits
mailing list