diff options
author | Davide Italiano <davide@freebsd.org> | 2019-02-20 18:27:29 +0000 |
---|---|---|
committer | Davide Italiano <davide@freebsd.org> | 2019-02-20 18:27:29 +0000 |
commit | d8af34f9278873e666b0046d6df7e92d3128d686 (patch) | |
tree | 69388fba8638b4bc72ff0cd57e2207ff9fa0fe9c /lldb/packages/Python/lldbsuite/test | |
parent | 51c1cc0757ffe5fbc6e830d39aeade7ead08032d (diff) | |
download | bcm5719-llvm-d8af34f9278873e666b0046d6df7e92d3128d686.tar.gz bcm5719-llvm-d8af34f9278873e666b0046d6df7e92d3128d686.zip |
[lldb-mi] Remove a test that uses pexpect().
Summary:
Its functionality is entirely covered by exec-run.test (which
doesn't use pexpect)
Reviewers: serge-sans-paille
Subscribers: ki.stfu, jdoerfert, llvm-commits
Tags: #llvm
Differential Revision: https://reviews.llvm.org/D58459
llvm-svn: 354494
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiFile.py | 82 |
1 files changed, 0 insertions, 82 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiFile.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiFile.py deleted file mode 100644 index b650eb89d81..00000000000 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/TestMiFile.py +++ /dev/null @@ -1,82 +0,0 @@ -""" -Test lldb-mi -file-xxx commands. -""" - -from __future__ import print_function - - -import lldbmi_testcase -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -from lldbsuite.test import lldbutil - - -class MiFileTestCase(lldbmi_testcase.MiTestCaseBase): - - mydir = TestBase.compute_mydir(__file__) - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_file_exec_and_symbols_file(self): - """Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols exe.""" - - self.spawnLldbMi(args=None) - - # Test that -file-exec-and-symbols works for filename - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - # Run - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"exited-normally\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_file_exec_and_symbols_absolute_path(self): - """Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols fullpath/exe.""" - - self.spawnLldbMi(args=None) - - # Test that -file-exec-and-symbols works for absolute path - self.runCmd("-file-exec-and-symbols \"%s\"" % self.myexe) - self.expect("\^done") - - # Run - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"exited-normally\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_file_exec_and_symbols_relative_path(self): - """Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols relpath/exe.""" - - self.spawnLldbMi(args=None) - - # Test that -file-exec-and-symbols works for relative path - import os - path = os.path.relpath(self.myexe, self.getBuildDir()) - self.runCmd("-file-exec-and-symbols %s" % path) - self.expect("\^done") - - # Run - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"exited-normally\"") - - @skipIfWindows # llvm.org/pr24452: Get lldb-mi tests working on Windows - @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races - @skipIfRemote # We do not currently support remote debugging via the MI. - def test_lldbmi_file_exec_and_symbols_unknown_path(self): - """Test that 'lldb-mi --interpreter' works for -file-exec-and-symbols badpath/exe.""" - - self.spawnLldbMi(args=None) - - # Test that -file-exec-and-symbols fails on unknown path - path = "unknown_dir/%s" % self.myexe - self.runCmd("-file-exec-and-symbols %s" % path) - self.expect("\^error") |