diff options
| author | Stella Stamenova <stilis@microsoft.com> | 2018-05-07 21:57:00 +0000 |
|---|---|---|
| committer | Stella Stamenova <stilis@microsoft.com> | 2018-05-07 21:57:00 +0000 |
| commit | 8380d12a6e7feed4198cfb797d17c07acdfa8a6b (patch) | |
| tree | 43b65aaa7b2f90db7510a1c544018b9801e0be5a /lldb/packages/Python/lldbsuite/test/functionalities | |
| parent | 9bd6067db650f8d757935fe35f2911e66c7fdc23 (diff) | |
| download | bcm5719-llvm-8380d12a6e7feed4198cfb797d17c07acdfa8a6b.tar.gz bcm5719-llvm-8380d12a6e7feed4198cfb797d17c07acdfa8a6b.zip | |
[lit, lldbsuite] Fixes for several tests LLDB tests for Python 3 or Windows
Summary:
In decorators.py, when opening streams, open them in text mode. In Py3, if they are not opened in text mode, the data is also expected to be binary, but we always use text data.
In TestLinuxCore, skip the tests that are not applicable on Windows
In the python api main.c, update the code to be compilable on Windows
Reviewers: asmith, zturner
Reviewed By: zturner
Subscribers: zturner
Differential Revision: https://reviews.llvm.org/D46440
llvm-svn: 331686
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities')
| -rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py index 4f73d48dfcf..e8c261f998e 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/postmortem/elf-core/TestLinuxCore.py @@ -46,16 +46,19 @@ class LinuxCoreTestCase(TestBase): """Test that lldb can read the process information from an i386 linux core file.""" self.do_test("linux-i386", self._i386_pid, self._i386_regions, "a.out") + @skipIf(oslist=['windows']) def test_mips_o32(self): """Test that lldb can read the process information from an MIPS O32 linux core file.""" self.do_test("linux-mipsel-gnuabio32", self._mips_o32_pid, self._mips_regions, "linux-mipsel-gn") + @skipIf(oslist=['windows']) def test_mips_n32(self): """Test that lldb can read the process information from an MIPS N32 linux core file """ self.do_test("linux-mips64el-gnuabin32", self._mips64_n32_pid, self._mips_regions, "linux-mips64el-") + @skipIf(oslist=['windows']) def test_mips_n64(self): """Test that lldb can read the process information from an MIPS N64 linux core file """ self.do_test("linux-mips64el-gnuabi64", self._mips64_n64_pid, |

