summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py b/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py
new file mode 100644
index 00000000000..d42fbe76ee5
--- /dev/null
+++ b/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py
@@ -0,0 +1,23 @@
+"""
+Test that backticks without a target should work (not infinite looping).
+"""
+
+import os, time
+import unittest2
+import lldb
+from lldbtest import *
+
+class BackticksWithNoTargetTestCase(TestBase):
+
+ mydir = "functionalities/backticks"
+
+ def test_backticks_no_target(self):
+ """A simple test of backticks without a target."""
+ self.expect("print `1+2-3`",
+ substrs = [' = 0'])
+
+if __name__ == '__main__':
+ import atexit
+ lldb.SBDebugger.Initialize()
+ atexit.register(lambda: lldb.SBDebugger.Terminate())
+ unittest2.main()
OpenPOWER on IntegriCloud