summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/functionalities/command_source
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
committerDimitry Andric <dim@FreeBSD.org>2019-08-20 18:01:57 +0000
commit88c643b6fec27eec436c8d138fee6346e92337d6 (patch)
tree82cd13b2f3cde1c9e5f79689ba4e6ba67694843f /packages/Python/lldbsuite/test/functionalities/command_source
parent94994d372d014ce4c8758b9605d63fae651bd8aa (diff)
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/functionalities/command_source')
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/.categories1
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/.lldb2
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/TestCommandSource.py39
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/commands.txt2
-rw-r--r--packages/Python/lldbsuite/test/functionalities/command_source/my.py7
5 files changed, 0 insertions, 51 deletions
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/.categories b/packages/Python/lldbsuite/test/functionalities/command_source/.categories
deleted file mode 100644
index 3a3f4df6416b..000000000000
--- a/packages/Python/lldbsuite/test/functionalities/command_source/.categories
+++ /dev/null
@@ -1 +0,0 @@
-cmdline
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/.lldb b/packages/Python/lldbsuite/test/functionalities/command_source/.lldb
deleted file mode 100644
index ecbdcff44626..000000000000
--- a/packages/Python/lldbsuite/test/functionalities/command_source/.lldb
+++ /dev/null
@@ -1,2 +0,0 @@
-# one more level of indirection to stress the command interpreter reentrancy
-command source commands.txt
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())])
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/commands.txt b/packages/Python/lldbsuite/test/functionalities/command_source/commands.txt
deleted file mode 100644
index 8e4de66d4690..000000000000
--- a/packages/Python/lldbsuite/test/functionalities/command_source/commands.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-script import my
-p 1 + 1
diff --git a/packages/Python/lldbsuite/test/functionalities/command_source/my.py b/packages/Python/lldbsuite/test/functionalities/command_source/my.py
deleted file mode 100644
index bd97fda3cbbf..000000000000
--- a/packages/Python/lldbsuite/test/functionalities/command_source/my.py
+++ /dev/null
@@ -1,7 +0,0 @@
-from __future__ import print_function
-
-
-def date():
- import datetime
- today = datetime.date.today()
- print(today)