diff options
author | Daniel Malea <daniel.malea@intel.com> | 2013-02-19 16:08:57 +0000 |
---|---|---|
committer | Daniel Malea <daniel.malea@intel.com> | 2013-02-19 16:08:57 +0000 |
commit | 249287afdea3bb7761d1f3e93fcf3a3b5bc8d18e (patch) | |
tree | fb95ec034e532e57b72fd14953024d164819c02a /lldb/test/python_api | |
parent | a9b732a32ad666cbc2bdd2b843d77c1c15576878 (diff) | |
download | bcm5719-llvm-249287afdea3bb7761d1f3e93fcf3a3b5bc8d18e.tar.gz bcm5719-llvm-249287afdea3bb7761d1f3e93fcf3a3b5bc8d18e.zip |
Minor test runner improvemenst
- rework the way SBDebugger.SetAsync() is used to avoid side effects (reset original value at TearDownHook)
- refactor expectedFailureClang (and add expectedFailureGcc decorator)
- mark TestChangeValueAPI.py as expectedFailureGcc due to PR-15039
llvm-svn: 175523
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r-- | lldb/test/python_api/process/io/TestProcessIO.py | 4 | ||||
-rw-r--r-- | lldb/test/python_api/value/change_values/TestChangeValueAPI.py | 1 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lldb/test/python_api/process/io/TestProcessIO.py b/lldb/test/python_api/process/io/TestProcessIO.py index 4d6a0221d3e..1096bce85a5 100644 --- a/lldb/test/python_api/process/io/TestProcessIO.py +++ b/lldb/test/python_api/process/io/TestProcessIO.py @@ -35,7 +35,9 @@ class ProcessIOTestCase(TestBase): target = self.dbg.CreateTarget(self.exe) - self.dbg.SetAsync(True) + # Perform synchronous interaction with the debugger. + self.setAsync(True) + process = target.LaunchSimple(None, None, os.getcwd()) if self.TraceOn(): print "process launched." diff --git a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py index 26f849b6190..fb5c294fe76 100644 --- a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py +++ b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py @@ -40,6 +40,7 @@ class ChangeValueAPITestCase(TestBase): self.line = line_number('main.c', '// Stop here and set values') self.end_line = line_number ('main.c', '// Set a breakpoint here at the end') + @expectedFailureGcc # PR-15039: If GCC is the test compiler, stdout is not available via lldb.SBProcess.GetSTDOUT() def change_value_api(self, exe_name): """Exercise some SBValue APIs.""" exe = os.path.join(os.getcwd(), exe_name) |