[Lldb-commits] [lldb] r245515 - Fix tests to work on remote targets.

Paul Herman via lldb-commits lldb-commits at lists.llvm.org
Wed Aug 19 15:44:49 PDT 2015


Author: paulherman
Date: Wed Aug 19 17:44:48 2015
New Revision: 245515

URL: http://llvm.org/viewvc/llvm-project?rev=245515&view=rev
Log:
Fix tests to work on remote targets.

Modified:
    lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py
    lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py
    lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py

Modified: lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py?rev=245515&r1=245514&r2=245515&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py (original)
+++ lldb/trunk/test/lang/cpp/chained-calls/TestCppChainedCalls.py Wed Aug 19 17:44:48 2015
@@ -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

Modified: lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py?rev=245515&r1=245514&r2=245515&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py (original)
+++ lldb/trunk/test/lang/cpp/global_operators/TestCppGlobalOperators.py Wed Aug 19 17:44:48 2015
@@ -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

Modified: lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py?rev=245515&r1=245514&r2=245515&view=diff
==============================================================================
--- lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py (original)
+++ lldb/trunk/test/lang/cpp/nsimport/TestCppNsImport.py Wed Aug 19 17:44:48 2015
@@ -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




More information about the lldb-commits mailing list