diff options
author | Vedant Kumar <vsk@apple.com> | 2018-03-14 18:37:13 +0000 |
---|---|---|
committer | Vedant Kumar <vsk@apple.com> | 2018-03-14 18:37:13 +0000 |
commit | bee500becb712c8cd55fb514ddab69fc69239212 (patch) | |
tree | 21b24a5bae7c5f5d9ebb313dc716d5161e3cc685 /lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py | |
parent | e66458a841ed3e3dc5041dc3d1af909c4d41d7cb (diff) | |
download | bcm5719-llvm-bee500becb712c8cd55fb514ddab69fc69239212.tar.gz bcm5719-llvm-bee500becb712c8cd55fb514ddab69fc69239212.zip |
[test] Delete some xfailed lldb-mi tests
This is a first pass at removing some lldb-mi tests which have been
xfailed and unmaintained for a while. We have open PRs for most of these
tests already. I've opened up the following additional PRs:
llvm.org/PR36739 - lldb-mi driver exits properly
llvm.org/PR36740 - lldb-mi -gdb-set and -gdb-show
llvm.org/PR36741 - lldb-mi -symbol-xxx
The motivation here is to address timeout and pexpect-related issues in
the test suite. This was discussed on lldb-dev in the thread: "increase
timeout for tests?".
After this change, the lldb-mi tests seem to be in better health (on
Darwin at least). I consistently get:
$ ./bin/llvm-dotest -p TestMi
===================
Test Result Summary
===================
Test Methods: 101
Reruns: 0
Success: 88
Expected Failure: 0
Failure: 0
Error: 0
Exceptional Exit: 0
Unexpected Success: 0
Skip: 13
Timeout: 0
Expected Timeout: 0
llvm-svn: 327552
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py deleted file mode 100644 index f396a0681cf..00000000000 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/symbol/TestMiSymbol.py +++ /dev/null @@ -1,104 +0,0 @@ -""" -Test lldb-mi -symbol-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 MiSymbolTestCase(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. - @expectedFailureAll( - oslist=["linux"], - bugnumber="new failure after r256863") - def test_lldbmi_symbol_list_lines_file(self): - """Test that 'lldb-mi --interpreter' works for -symbol-list-lines when file exists.""" - - self.spawnLldbMi(args=None) - - # Load executable - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - # Run to main - self.runCmd("-break-insert -f main") - self.expect("\^done,bkpt={number=\"1\"") - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - # Get address of main and its line - self.runCmd("-data-evaluate-expression main") - self.expect( - "\^done,value=\"0x[0-9a-f]+ \(a.out`main at main.cpp:[0-9]+\)\"") - addr = int(self.child.after.split("\"")[1].split(" ")[0], 16) - line = line_number('main.cpp', '// FUNC_main') - - # Test that -symbol-list-lines works on valid data - self.runCmd("-symbol-list-lines main.cpp") - self.expect( - "\^done,lines=\[\{pc=\"0x0*%x\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"\d+\"\})+\]" % - (addr, line)) - - # Test that -symbol-list-lines doesn't include lines from other sources - # by checking the first and last line, and making sure the other lines - # are between 30 and 39. - sline = line_number( - 'symbol_list_lines_inline_test2.cpp', - '// FUNC_gfunc2') - eline = line_number( - 'symbol_list_lines_inline_test2.cpp', - '// END_gfunc2') - self.runCmd("-symbol-list-lines symbol_list_lines_inline_test2.cpp") - self.expect( - "\^done,lines=\[\{pc=\"0x[0-9a-f]+\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"3\d\"\})*,\{pc=\"0x[0-9a-f]+\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"3\d\"\})*\]" % - (sline, eline)) - # FIXME: This doesn't work for symbol_list_lines_inline_test.cpp due to clang bug llvm.org/pr24716 (fixed in newer versions of clang) - ##sline = line_number('symbol_list_lines_inline_test.cpp', '// FUNC_gfunc') - ##eline = line_number('symbol_list_lines_inline_test.cpp', '// STRUCT_s') - ##self.runCmd("-symbol-list-lines symbol_list_lines_inline_test.cpp") - ##self.expect("\^done,lines=\[\{pc=\"0x[0-9a-f]+\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"3\d\"\})*,\{pc=\"0x[0-9a-f]+\",line=\"%d\"\}\]" % (sline, eline)) - - # Test that -symbol-list-lines works on header files by checking the first - # and last line, and making sure the other lines are under 29. - sline = line_number('symbol_list_lines_inline_test.h', '// FUNC_ifunc') - eline = line_number('symbol_list_lines_inline_test.h', '// FUNC_mfunc') - self.runCmd("-symbol-list-lines symbol_list_lines_inline_test.h") - self.expect( - "\^done,lines=\[\{pc=\"0x[0-9a-f]+\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"\d\"\})*(,\{pc=\"0x[0-9a-f]+\",line=\"1\d\"\})*,\{pc=\"0x[0-9a-f]+\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"2\d\"\})*\]" % - (sline, eline)) - - # Test that -symbol-list-lines fails when file doesn't exist - self.runCmd("-symbol-list-lines unknown_file") - self.expect( - "\^error,message=\"error: No source filenames matched 'unknown_file'\. \"") - - # Test that -symbol-list-lines fails when file is specified using - # relative path - self.runCmd("-symbol-list-lines ./main.cpp") - self.expect( - "\^error,message=\"error: No source filenames matched '\./main\.cpp'\. \"") - - # Test that -symbol-list-lines works when file is specified using - # absolute path - import os - path = os.path.join(self.getSourceDir(), "main.cpp") - self.runCmd("-symbol-list-lines \"%s\"" % path) - self.expect( - "\^done,lines=\[\{pc=\"0x0*%x\",line=\"%d\"\}(,\{pc=\"0x[0-9a-f]+\",line=\"\d+\"\})+\]" % - (addr, line)) - - # Test that -symbol-list-lines fails when file doesn't exist - self.runCmd("-symbol-list-lines unknown_dir/main.cpp") - self.expect( - "\^error,message=\"error: No source filenames matched 'unknown_dir/main\.cpp'\. \"") |