From bee500becb712c8cd55fb514ddab69fc69239212 Mon Sep 17 00:00:00 2001 From: Vedant Kumar Date: Wed, 14 Mar 2018 18:37:13 +0000 Subject: [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 --- .../lldb-mi/variable/TestMiGdbSetShowPrint.py | 75 ---------------------- 1 file changed, 75 deletions(-) (limited to 'lldb/packages/Python/lldbsuite/test/tools/lldb-mi/variable') diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py index 4384c79fc84..cf1da5bae9c 100644 --- a/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py +++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-mi/variable/TestMiGdbSetShowPrint.py @@ -171,81 +171,6 @@ class MiGdbSetShowTestCase(lldbmi_testcase.MiTestCaseBase): self.expect( "\^error,msg=\"The request ''print' expects option-name and \"on\" or \"off\"' failed.\"") - @skipIfWindows # llvm.org/pr24452: Get lldb-mi working on Windows - @expectedFailureAll(compiler="gcc", bugnumber="llvm.org/pr23357") - @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_gdb_set_show_print_expand_aggregates(self): - """Test that 'lldb-mi --interpreter' can expand aggregates everywhere.""" - - self.spawnLldbMi(args=None) - - # Load executable - self.runCmd("-file-exec-and-symbols %s" % self.myexe) - self.expect("\^done") - - # Run to BP_gdb_set_show_print_expand_aggregates - line = line_number( - 'main.cpp', - '// BP_gdb_set_show_print_expand_aggregates') - self.runCmd("-break-insert main.cpp:%d" % line) - self.expect("\^done,bkpt={number=\"1\"") - self.runCmd("-exec-run") - self.expect("\^running") - self.expect("\*stopped,reason=\"breakpoint-hit\"") - - # Test that default print expand-aggregates value is "off" - self.runCmd("-gdb-show print expand-aggregates") - self.expect("\^done,value=\"off\"") - - # Test that composite type isn't expanded when print expand-aggregates - # is "off" - self.runCmd("-var-create var1 * complx") - self.expect( - "\^done,name=\"var1\",numchild=\"3\",value=\"{\.\.\.}\",type=\"complex_type\",thread-id=\"1\",has_more=\"0\"") - - # Test that composite type[] isn't expanded when print - # expand-aggregates is "off" - self.eval_and_check_array("complx_array", "complex_type", 2) - - # Test that a struct with a char first element is not formatted as a - # string - self.runCmd("-var-create - * &nstr") - self.expect( - "\^done,name=\"var\d+\",numchild=\"2\",value=\"0x[0-9a-f]+\",type=\"not_str \*\",thread-id=\"1\",has_more=\"0\"") - - # Test that -gdb-set can set print expand-aggregates flag - self.runCmd("-gdb-set print expand-aggregates on") - self.expect("\^done") - self.runCmd("-gdb-set print expand-aggregates 1") - self.expect("\^done") - self.runCmd("-gdb-show print expand-aggregates") - self.expect("\^done,value=\"on\"") - - # Test that composite type is expanded when print expand-aggregates is - # "on" - self.runCmd("-var-create var3 * complx") - self.expect( - "\^done,name=\"var3\",numchild=\"3\",value=\"{i = 3, inner = {l = 3}, complex_ptr = 0x[0-9a-f]+}\",type=\"complex_type\",thread-id=\"1\",has_more=\"0\"") - - # Test that composite type[] is expanded when print expand-aggregates - # is "on" - self.runCmd("-var-create var4 * complx_array") - self.expect( - "\^done,name=\"var4\",numchild=\"2\",value=\"{\[0\] = {i = 4, inner = {l = 4}, complex_ptr = 0x[0-9a-f]+}, \[1\] = {i = 5, inner = {l = 5}, complex_ptr = 0x[0-9a-f]+}}\",type=\"complex_type \[2\]\",thread-id=\"1\",has_more=\"0\"") - - # Test that -gdb-set print expand-aggregates fails if "on"/"off" isn't - # specified - self.runCmd("-gdb-set print expand-aggregates") - self.expect( - "\^error,msg=\"The request ''print' expects option-name and \"on\" or \"off\"' failed.\"") - - # Test that -gdb-set print expand-aggregates fails when option is - # unknown - self.runCmd("-gdb-set print expand-aggregates unknown") - self.expect( - "\^error,msg=\"The request ''print' expects option-name and \"on\" or \"off\"' failed.\"") - @skipIfWindows # llvm.org/pr24452: Get lldb-mi working on Windows @expectedFailureAll(compiler="gcc", bugnumber="llvm.org/pr23357") @skipIfFreeBSD # llvm.org/pr22411: Failure presumably due to known thread races -- cgit v1.2.3