diff options
author | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-04 22:21:35 +0000 |
---|---|---|
committer | Jonas Devlieghere <jonas@devlieghere.com> | 2019-10-04 22:21:35 +0000 |
commit | cd5cd7d14c7ab0a24d40dc3e6588dc817565392c (patch) | |
tree | ab2a0e1663815d0400b2c9a41b7006bdfe22669e /lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py | |
parent | 5042882698840ba723360a7149091e1fc8565e34 (diff) | |
download | bcm5719-llvm-cd5cd7d14c7ab0a24d40dc3e6588dc817565392c.tar.gz bcm5719-llvm-cd5cd7d14c7ab0a24d40dc3e6588dc817565392c.zip |
[test] Run TestLaunchWithShellExpand with /bin/sh on POSIX.
Now that we do shell expansion on POSIX with the user's shel, this test
can potentially fail. This should ensure that we always use /bin/sh.
llvm-svn: 373804
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py b/lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py index 1ba812159fb..64a2894069b 100644 --- a/lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py +++ b/lldb/packages/Python/lldbsuite/test/commands/process/launch-with-shellexpand/TestLaunchWithShellExpand.py @@ -2,6 +2,7 @@ Test that argdumper is a viable launching strategy. """ from __future__ import print_function +import os import lldb @@ -36,6 +37,9 @@ class LaunchWithShellExpandTestCase(TestBase): 'break here', lldb.SBFileSpec("main.cpp", False)) self.assertTrue(breakpoint, VALID_BREAKPOINT) + # Ensure we do the expansion with /bin/sh on POSIX. + os.environ["SHELL"] = '/bin/sh' + self.runCmd( "process launch -X true -w %s -- fi*.tx? () > <" % (self.getSourceDir())) |