Fix tests to work on remote targets.

llvm-svn: 245515
This commit is contained in:
Paul Herman 2015-08-19 22:44:48 +00:00
parent 0d461693b6
commit 6e0fe6fbf5
3 changed files with 6 additions and 6 deletions

View File

@ -27,7 +27,7 @@ class TestCppChainedCalls(TestBase):
self.assertTrue(src_file_spec.IsValid(), "Main source file")
# Get the path of the executable
cwd = self.get_process_working_directory()
cwd = os.getcwd()
exe_file = "a.out"
exe_path = os.path.join(cwd, exe_file)
@ -42,7 +42,7 @@ class TestCppChainedCalls(TestBase):
# Launch the process
args = None
env = None
process = target.LaunchSimple(args, env, cwd)
process = target.LaunchSimple(args, env, self.get_process_working_directory())
self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
# Get the thread of the process

View File

@ -30,7 +30,7 @@ class TestCppGlobalOperators(TestBase):
self.assertTrue(src_file_spec.IsValid(), "Main source file")
# Get the path of the executable
cwd = self.get_process_working_directory()
cwd = os.getcwd()
exe_file = "a.out"
exe_path = os.path.join(cwd, exe_file)
@ -45,7 +45,7 @@ class TestCppGlobalOperators(TestBase):
# Launch the process
args = None
env = None
process = target.LaunchSimple(args, env, cwd)
process = target.LaunchSimple(args, env, self.get_process_working_directory())
self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
# Get the thread of the process

View File

@ -34,7 +34,7 @@ class TestCppNsImport(TestBase):
self.assertTrue(src_file_spec.IsValid(), "Main source file")
# Get the path of the executable
cwd = self.get_process_working_directory()
cwd = os.getcwd()
exe_file = "a.out"
exe_path = os.path.join(cwd, exe_file)
@ -49,7 +49,7 @@ class TestCppNsImport(TestBase):
# Launch the process
args = None
env = None
process = target.LaunchSimple(args, env, cwd)
process = target.LaunchSimple(args, env, self.get_process_working_directory())
self.assertTrue(process.IsValid(), PROCESS_IS_VALID)
# Get the thread of the process