forked from OSchip/llvm-project
				
			[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
This commit is contained in:
		
							parent
							
								
									5042882698
								
							
						
					
					
						commit
						cd5cd7d14c
					
				| 
						 | 
					@ -2,6 +2,7 @@
 | 
				
			||||||
Test that argdumper is a viable launching strategy.
 | 
					Test that argdumper is a viable launching strategy.
 | 
				
			||||||
"""
 | 
					"""
 | 
				
			||||||
from __future__ import print_function
 | 
					from __future__ import print_function
 | 
				
			||||||
 | 
					import os
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
import lldb
 | 
					import lldb
 | 
				
			||||||
| 
						 | 
					@ -36,6 +37,9 @@ class LaunchWithShellExpandTestCase(TestBase):
 | 
				
			||||||
            'break here', lldb.SBFileSpec("main.cpp", False))
 | 
					            'break here', lldb.SBFileSpec("main.cpp", False))
 | 
				
			||||||
        self.assertTrue(breakpoint, VALID_BREAKPOINT)
 | 
					        self.assertTrue(breakpoint, VALID_BREAKPOINT)
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					        # Ensure we do the expansion with /bin/sh on POSIX.
 | 
				
			||||||
 | 
					        os.environ["SHELL"] = '/bin/sh'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
        self.runCmd(
 | 
					        self.runCmd(
 | 
				
			||||||
            "process launch -X true -w %s -- fi*.tx? () > <" %
 | 
					            "process launch -X true -w %s -- fi*.tx? () > <" %
 | 
				
			||||||
            (self.getSourceDir()))
 | 
					            (self.getSourceDir()))
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue