diff options
author | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:01:57 +0000 |
---|---|---|
committer | Dimitry Andric <dim@FreeBSD.org> | 2019-08-20 18:01:57 +0000 |
commit | 88c643b6fec27eec436c8d138fee6346e92337d6 (patch) | |
tree | 82cd13b2f3cde1c9e5f79689ba4e6ba67694843f /packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py | |
parent | 94994d372d014ce4c8758b9605d63fae651bd8aa (diff) |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py')
-rw-r--r-- | packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py b/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py deleted file mode 100644 index cee9bd272189..000000000000 --- a/packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py +++ /dev/null @@ -1,39 +0,0 @@ -""" -Test that lldb command "command source" works correctly. - -See also http://llvm.org/viewvc/llvm-project?view=rev&revision=109673. -""" - -from __future__ import print_function - - -import os -import sys -import lldb -from lldbsuite.test.decorators import * -from lldbsuite.test.lldbtest import * -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.""" - - # Sourcing .lldb in the current working directory, which in turn imports - # the "my" package that defines the date() function. - self.runCmd("command source .lldb") - - # Python should evaluate "my.date()" successfully. - command_interpreter = self.dbg.GetCommandInterpreter() - self.assertTrue(command_interpreter, VALID_COMMAND_INTERPRETER) - result = lldb.SBCommandReturnObject() - command_interpreter.HandleCommand("script my.date()", result) - - import datetime - self.expect(result.GetOutput(), "script my.date() runs successfully", - exe=False, - substrs=[str(datetime.date.today())]) |