[lldb] Speed up TestValueObjectRecursion by making it a no_debug_info_test
authorRaphael Isemann <teemperor@gmail.com>
Fri, 4 Sep 2020 09:25:38 +0000 (11:25 +0200)
committerRaphael Isemann <teemperor@gmail.com>
Fri, 4 Sep 2020 09:25:43 +0000 (11:25 +0200)
This is one of the most expensive tests and runs for nearly half a minute on
my machine. Beside this test just doing a lot of work by iterating 15k times on
one ValueObject (which seems to be the point), it also runs this for every
debug info variant which doesn't seem relevant to just iterating ValueObject.

This marks it as no_debug_info_test to only run one debug info variation
and cut down the runtime to around 7 seconds on my machine.

lldb/test/API/functionalities/recursion/TestValueObjectRecursion.py

index e949f1a..1653fe3 100644 (file)
@@ -6,6 +6,7 @@ from __future__ import print_function
 
 
 import lldb
+from lldbsuite.test.decorators import *
 from lldbsuite.test.lldbtest import *
 import lldbsuite.test.lldbutil as lldbutil
 
@@ -20,6 +21,7 @@ class ValueObjectRecursionTestCase(TestBase):
         # Find the line number to break at.
         self.line = line_number('main.cpp', '// Set break point at this line.')
 
+    @no_debug_info_test
     def test_with_run_command(self):
         """Test that deeply nested ValueObjects still work."""
         self.build()