summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/file_handle
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-10-10 09:52:32 +0000
committerPavel Labath <pavel@labath.sk>2019-10-10 09:52:32 +0000
commitc92a75fec0adb8569e81c35817e0e27a1cdb7959 (patch)
tree49e63d7719382d3401b85b24b953db161b979f67 /lldb/packages/Python/lldbsuite/test/python_api/file_handle
parent3de28b83c26b5d88ee3f77066ecdb46d44f1ac94 (diff)
downloadbcm5719-llvm-c92a75fec0adb8569e81c35817e0e27a1cdb7959.tar.gz
bcm5719-llvm-c92a75fec0adb8569e81c35817e0e27a1cdb7959.zip
s/@expectedFailure/@expectedFailureAll in TestFileHandle
The test isn't using @expectedFailure correctly, which causes weird errors, at least with python2, at least with linux. Possibly that function shouldn't even be public as it's main use is as a backed for other decorators. llvm-svn: 374299
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/file_handle')
-rw-r--r--lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py23
1 files changed, 11 insertions, 12 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py b/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
index 60917b68a6c..ce3a679fdc9 100644
--- a/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
+++ b/lldb/packages/Python/lldbsuite/test/python_api/file_handle/TestFileHandle.py
@@ -12,8 +12,7 @@ from contextlib import contextmanager
import lldb
from lldbsuite.test import lldbtest
-from lldbsuite.test.decorators import (
- add_test_categories, skipIf, skipIfWindows, expectedFailure)
+from lldbsuite.test.decorators import *
class OhNoe(Exception):
pass
@@ -400,7 +399,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME IOHandler still using FILE*
+ @expectedFailureAll() # FIXME IOHandler still using FILE*
def test_string_inout(self):
inf = io.StringIO("help help\n")
outf = io.StringIO()
@@ -416,7 +415,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME IOHandler still using FILE*
+ @expectedFailureAll() # FIXME IOHandler still using FILE*
def test_bytes_inout(self):
inf = io.BytesIO(b"help help\nhelp b\n")
outf = io.BytesIO()
@@ -462,7 +461,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure #FIXME bug in ScriptInterpreterPython
+ @expectedFailureAll() #FIXME bug in ScriptInterpreterPython
def test_replace_stdout_with_nonfile(self):
debugger = self.debugger
f = io.StringIO()
@@ -550,7 +549,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
@skipIf(py_version=['<', (3,)])
- @expectedFailure # fixme multiple problems with this
+ @expectedFailureAll() # fixme multiple problems with this
def test_string_out(self):
f = io.StringIO()
status = self.debugger.SetOutputFile(f)
@@ -560,7 +559,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME need FileSP version of SBDebugger::SetErrorFile
+ @expectedFailureAll() # FIXME need FileSP version of SBDebugger::SetErrorFile
@skipIf(py_version=['<', (3,)])
def test_string_error(self):
f = io.StringIO()
@@ -631,7 +630,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME need FileSP version of SBDebugger::SetErrorFile
+ @expectedFailureAll() # FIXME need FileSP version of SBDebugger::SetErrorFile
@skipIf(py_version=['<', (3,)])
def test_file_out(self):
with open(self.out_filename, 'w') as f:
@@ -655,7 +654,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME need FileSP version of SBDebugger::SetErrorFile
+ @expectedFailureAll() # FIXME need FileSP version of SBDebugger::SetErrorFile
def test_file_error(self):
with open(self.out_filename, 'w') as f:
status = self.debugger.SetErrorFile(f)
@@ -747,7 +746,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME need FileSP version of SBDebugger::SetOutputFile
+ @expectedFailureAll() # FIXME need FileSP version of SBDebugger::SetOutputFile
def test_close(self):
debugger = self.debugger
with open(self.out_filename, 'w') as f:
@@ -768,7 +767,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
@skipIf(py_version=['<', (3,)])
- @expectedFailure # FIXME need FileSP version of SBDebugger::SetOutputFile
+ @expectedFailureAll() # FIXME need FileSP version of SBDebugger::SetOutputFile
def test_stdout(self):
f = io.StringIO()
status = self.debugger.SetOutputFile(f)
@@ -778,7 +777,7 @@ class FileHandleTestCase(lldbtest.TestBase):
@add_test_categories(['pyapi'])
- @expectedFailure # FIXME implement SBFile::GetFile
+ @expectedFailureAll() # FIXME implement SBFile::GetFile
@skipIf(py_version=['<', (3,)])
def test_identity(self):
OpenPOWER on IntegriCloud