forked from OSchip/llvm-project
[lldb][tests] Automatically call compute_mydir (NFC)
Eliminate boilerplate of having each test manually assign to `mydir` by calling `compute_mydir` in lldbtest.py. Differential Revision: https://reviews.llvm.org/D128077
This commit is contained in:
parent
303c4c37ea
commit
4cc8f2a017
|
@ -33,9 +33,7 @@ to the Python test suite under the current 'test' directory.
|
|||
|
||||
./command_source/TestCommandSource.py provides a simple example of test case
|
||||
which overrides lldbtest.TestBase to exercise the lldb's 'command source'
|
||||
command. The subclass should override the attribute 'mydir' in order for the
|
||||
runtime to locate the individual test cases when running as part of a large
|
||||
test suite or when running each test case as a separate Python invocation.
|
||||
command.
|
||||
|
||||
The doc string provides more details about the setup required for running a
|
||||
test case on its own. To run the whole test suite, 'dotest.py' is all you
|
||||
|
|
|
@ -4,10 +4,6 @@ LLDB module which provides the abstract base class of lldb test case.
|
|||
The concrete subclass can override lldbtest.TestBase in order to inherit the
|
||||
common behavior for unitest.TestCase.setUp/tearDown implemented in this file.
|
||||
|
||||
The subclass should override the attribute mydir in order for the python runtime
|
||||
to locate the individual test cases when running as part of a large test suite
|
||||
or when running each test case as a separate python invocation.
|
||||
|
||||
./dotest.py provides a test driver which sets up the environment to run the
|
||||
entire of part of the test suite . Example:
|
||||
|
||||
|
@ -539,7 +535,9 @@ class Base(unittest2.TestCase):
|
|||
Do current directory manipulation.
|
||||
"""
|
||||
# Fail fast if 'mydir' attribute is not overridden.
|
||||
if not cls.mydir or len(cls.mydir) == 0:
|
||||
if not cls.mydir:
|
||||
cls.mydir = Base.compute_mydir(sys.modules[cls.__module__].__file__)
|
||||
if not cls.mydir:
|
||||
raise Exception("Subclasses must override the 'mydir' attribute.")
|
||||
|
||||
# Save old working directory.
|
||||
|
@ -1703,11 +1701,6 @@ class TestBase(Base):
|
|||
|
||||
Important things for test class writers:
|
||||
|
||||
- Overwrite the mydir class attribute, otherwise your test class won't
|
||||
run. It specifies the relative directory to the top level 'test' so
|
||||
the test harness can change to the correct working directory before
|
||||
running your test.
|
||||
|
||||
- The setUp method sets up things to facilitate subsequent interactions
|
||||
with the debugger as part of the test. These include:
|
||||
- populate the test method name
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class DefaultCacheLineSizeTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
@skipUnlessTargetAndroid
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class SBDirCheckerCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class TestSBCommandReturnObject(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
@skipIfNoSBHeaders
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
import six
|
||||
|
||||
class ListenToModuleLoadedEvents (TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_clearing_listener(self):
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
class APILogTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_api_log(self):
|
||||
|
|
|
@ -13,8 +13,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestMultipleSimultaneousDebuggers(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
@skipIfNoSBHeaders
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class TestMultipleTargets(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
@skipIf(oslist=["linux"], archs=["arm", "aarch64"])
|
||||
|
|
|
@ -25,8 +25,6 @@ class SBBreakpointCallbackCase(TestBase):
|
|||
self.generateSource('test_listener_resume.cpp')
|
||||
self.generateSource('test_stop-hook.cpp')
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@skipIfRemote
|
||||
@skipIfNoSBHeaders
|
||||
# clang-cl does not support throw or catch (llvm.org/pr24538)
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class TestBreakpointIt(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
@skipIf(archs=no_match(["arm"]))
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBreakpointThumbCodesection(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@skipIf(archs=no_match(["arm"]))
|
||||
@skipIf(archs=["arm64"])
|
||||
@skipIfDarwinEmbedded # codegen on darwin always defaults to thumb for armv7/armv7k targets
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ARMEmulationTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_thumb_emulations(self):
|
||||
test_dir = os.path.join(self.getSourceDir(), "new-test-files")
|
||||
|
|
|
@ -11,8 +11,6 @@ from textwrap import dedent
|
|||
|
||||
|
||||
class AssertMessagesTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def assert_expect_fails_with(self, cmd, expect_args, expected_msg):
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBenchmarkContinue(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@benchmarks_test
|
||||
def test_run_command(self):
|
||||
"""Benchmark different ways to continue a process"""
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExpressionEvaluationCase(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
BenchBase.setUp(self)
|
||||
self.source = 'main.cpp'
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class RepeatedExprsCase(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
BenchBase.setUp(self)
|
||||
self.source = 'main.cpp'
|
||||
|
|
|
@ -13,8 +13,6 @@ from lldbsuite.test.lldbbench import *
|
|||
|
||||
class FrameVariableResponseBench(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
BenchBase.setUp(self)
|
||||
self.exe = lldbtest_config.lldbExec
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBenchmarkLibcxxList(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@benchmarks_test
|
||||
def test_run_command(self):
|
||||
"""Benchmark the std::list data formatter (libc++)"""
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBenchmarkLibcxxMap(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@benchmarks_test
|
||||
def test_run_command(self):
|
||||
"""Benchmark the std::map data formatter (libc++)"""
|
||||
|
|
|
@ -13,8 +13,6 @@ from lldbsuite.test.lldbbench import *
|
|||
|
||||
class StartupDelaysBench(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
BenchBase.setUp(self)
|
||||
# Create self.stopwatch2 for measuring "set first breakpoint".
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class SteppingSpeedBench(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
BenchBase.setUp(self)
|
||||
self.exe = lldbtest_config.lldbExec
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class CompileRunToBreakpointBench(BenchBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
BenchBase.setUp(self)
|
||||
self.exe = lldbtest_config.lldbExec
|
||||
|
|
|
@ -13,8 +13,6 @@ from lldbsuite.test import lldbutil
|
|||
@skipUnlessDarwin
|
||||
class AddDsymCommandCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
TestBase.setUp(self)
|
||||
self.template = 'main.cpp.template'
|
||||
|
|
|
@ -4,8 +4,6 @@ from lldbsuite.test.decorators import *
|
|||
|
||||
class AproposTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_apropos(self):
|
||||
self.expect("apropos", error=True,
|
||||
|
|
|
@ -10,8 +10,6 @@ import lldbsuite.test.lldbutil as lldbutil
|
|||
|
||||
|
||||
class AproposWithProcessTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
@ -8,8 +8,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_list_commands(self):
|
||||
src_dir = self.getSourceDir()
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_error(self):
|
||||
self.expect("breakpoint set --func-regex (", error=True,
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
|
||||
class TestCmdContainer(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_container_add(self):
|
||||
|
|
|
@ -4,8 +4,6 @@ from lldbsuite.test.decorators import *
|
|||
|
||||
class DeleteCommandTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_delete_builtin(self):
|
||||
self.expect("command delete settings", error=True,
|
||||
|
|
|
@ -4,8 +4,6 @@ from lldbsuite.test.decorators import *
|
|||
|
||||
class InvalidArgsCommandTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_script_add(self):
|
||||
self.expect("command script add 1 2", error=True,
|
||||
|
|
|
@ -10,8 +10,6 @@ import lldbsuite.test.lldbutil as lldbutil
|
|||
|
||||
|
||||
class NestedAliasTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
class TestCommandRegexParsing(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_sample_rename_this(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
|
||||
class CmdPythonTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ImportTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
@no_debug_info_test
|
||||
def test_import_command(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class Rdar12586188TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(['pyapi'])
|
||||
@no_debug_info_test
|
||||
def test_rdar12586188_command(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
|
||||
class CommandScriptAliasTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_pycmd(self):
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class CommandSourceTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_command_source(self):
|
||||
"""Test that lldb command "command source" works correctly."""
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class DisassemblyTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test(self):
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
class FrameDisassembleTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_frame_disassemble(self):
|
||||
|
|
|
@ -13,7 +13,6 @@ from lldbsuite.test.lldbtest import *
|
|||
from lldbsuite.test import lldbutil
|
||||
|
||||
class TestExprLookupAnonStructTypedef(TestBase):
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@expectedFailureAll(
|
||||
oslist=['linux'],
|
||||
|
|
|
@ -17,8 +17,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestArgumentPassingRestrictions(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@skipIf(compiler="clang", compiler_version=['<', '7.0'])
|
||||
def test_argument_passing_restrictions(self):
|
||||
self.build()
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class TestCalculatorMode(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test__calculator_mode(self):
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCommandCallBuiltinFunction(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# Builtins are expanded by Clang, so debug info shouldn't matter.
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCommandCallFunctionTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@expectedFailureAll(
|
||||
compiler="icc",
|
||||
bugnumber="llvm.org/pr14437, fails with ICC 13.1")
|
||||
|
|
|
@ -8,8 +8,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCommandCallStopContinueTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
# Call super's setUp().
|
||||
TestBase.setUp(self)
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCommandCallUserDefinedFunction(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test(self):
|
||||
"""Test return values of user defined function calls."""
|
||||
self.build()
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class ExprCommandThatRestartsTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def setUp(self):
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCommandWithThrowTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
# Call super's setUp().
|
||||
TestBase.setUp(self)
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCastIntToAnonymousEnum(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test_cast_int_to_anonymous_enum(self):
|
||||
self.build()
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCharTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def do_test(self, dictionary=None):
|
||||
"""These basic expression commands should work as expected."""
|
||||
self.build(dictionary=dictionary)
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestClassTemplateSpecializationParametersHandling(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test_class_template_specialization(self):
|
||||
self.build()
|
||||
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestImportDefinitionArrayType(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test(self):
|
||||
self.build()
|
||||
lldbutil.run_to_source_breakpoint(self, "// break here", lldb.SBFileSpec("main.cpp"))
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@skipIf # rdar://problem/53931074
|
||||
def test(self):
|
||||
self.build()
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class CommandLineExprCompletionTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_expr_completion(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
class ContextObjectObjcTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["objc"])
|
||||
def test_context_object_objc(self):
|
||||
"""Tests expression evaluation in context of an objc class."""
|
||||
|
|
|
@ -8,8 +8,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
class ContextObjectTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test_context_object(self):
|
||||
"""Tests expression evaluation in context of an object."""
|
||||
self.build()
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test.decorators import *
|
|||
|
||||
class ExprDiagnosticsTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
# Call super's setUp().
|
||||
TestBase.setUp(self)
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@expectedFailureAll(oslist=["windows"])
|
||||
def test(self):
|
||||
self.build()
|
||||
|
|
|
@ -11,8 +11,6 @@ from lldbsuite.test.decorators import *
|
|||
|
||||
class TestAllowJIT(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# If your test case doesn't stress debug info, then
|
||||
# set this to true. That way it won't be run once for
|
||||
# each debug info format.
|
||||
|
|
|
@ -8,8 +8,6 @@ from lldbsuite.test.lldbtest import *
|
|||
|
||||
class ExprEntryBPTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
NO_DEBUG_INFO_TESTCASE = True
|
||||
|
||||
def test_expr_entry_bp(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test(self):
|
||||
# FIXME: The only reason this test needs to create a real target is because
|
||||
|
|
|
@ -8,8 +8,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprSyscallTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@expectedFailureAll(
|
||||
oslist=["windows"],
|
||||
bugnumber="llvm.org/pr21765, getpid() does not exist on Windows")
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprCommandWithFixits(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test_with_dummy_target(self):
|
||||
"""Test calling expressions in the dummy target with errors that can be fixed by the FixIts."""
|
||||
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ExprFormattersTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def setUp(self):
|
||||
# Call super's setUp().
|
||||
TestBase.setUp(self)
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestFunctionTemplateSpecializationTempArgs(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test_function_template_specialization_temp_args(self):
|
||||
self.build()
|
||||
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class ImportStdModule(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -14,8 +14,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestImportStdModuleConflicts(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBasicDeque(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestDbgInfoContentDeque(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ import os
|
|||
|
||||
class ImportStdModule(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# We only emulate a fake libc++ in this test and don't use the real libc++,
|
||||
# but we still add the libc++ category so that this test is only run in
|
||||
# test configurations where libc++ is actually supposed to be tested.
|
||||
|
|
|
@ -10,8 +10,6 @@ import os
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# We only emulate a fake libc++ in this test and don't use the real libc++,
|
||||
# but we still add the libc++ category so that this test is only run in
|
||||
# test configurations where libc++ is actually supposed to be tested.
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestDbgInfoContentForwardList(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBasicForwardList(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestDbgInfoContentList(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBasicList(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -11,8 +11,6 @@ import shutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# We only emulate a fake libc++ in this test and don't use the real libc++,
|
||||
# but we still add the libc++ category so that this test is only run in
|
||||
# test configurations where libc++ is actually supposed to be tested.
|
||||
|
|
|
@ -14,8 +14,6 @@ import os
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# We only emulate a fake libc++ in this test and don't use the real libc++,
|
||||
# but we still add the libc++ category so that this test is only run in
|
||||
# test configurations where libc++ is actually supposed to be tested.
|
||||
|
|
|
@ -15,8 +15,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class STLTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
# FIXME: This regressed in 69d5a6662115499198ebfa07a081e98a6ce4b915
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestQueue(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -5,8 +5,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestSharedPtrDbgInfoContent(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestSharedPtr(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -8,8 +8,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestStack(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
@skipIfLinux # Declaration in some Linux headers causes LLDB to crash.
|
||||
|
|
|
@ -10,8 +10,6 @@ import os
|
|||
|
||||
class ImportStdModule(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
# We only emulate a fake libc++ in this test and don't use the real libc++,
|
||||
# but we still add the libc++ category so that this test is only run in
|
||||
# test configurations where libc++ is actually supposed to be tested.
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestUniquePtrDbgInfoContent(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
@skipIf(compiler="clang", compiler_version=['<', '9.0'])
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestUniquePtr(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
@skipIf(compiler="clang", compiler_version=['<', '9.0'])
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBoolVector(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -10,8 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestDbgInfoContentVector(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestVectorOfVectors(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestBasicVector(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestDbgInfoContentWeakPtr(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -9,8 +9,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestSharedPtr(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@add_test_categories(["libc++"])
|
||||
@skipIf(compiler=no_match("clang"))
|
||||
def test(self):
|
||||
|
|
|
@ -12,8 +12,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
class TestImportBuiltinFileID(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@skipIfDarwinEmbedded
|
||||
@add_test_categories(["gmodules", "objc"])
|
||||
def test_import_builtin_fileid(self):
|
||||
|
|
|
@ -10,7 +10,6 @@ from lldbsuite.test import lldbutil
|
|||
|
||||
|
||||
class TestInlineNamespace(TestBase):
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
def test(self):
|
||||
self.build()
|
||||
|
|
|
@ -4,8 +4,6 @@ from lldbsuite.test.decorators import *
|
|||
|
||||
class InvalidArgsExpressionTestCase(TestBase):
|
||||
|
||||
mydir = TestBase.compute_mydir(__file__)
|
||||
|
||||
@no_debug_info_test
|
||||
def test_invalid_lang(self):
|
||||
self.expect("expression -l foo --", error=True,
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue