[Lldb-commits] [lldb] r143274 - in /lldb/trunk/test/functionalities/backticks: ./ TestBackticksWithoutATarget.py
Johnny Chen
johnny.chen at apple.com
Fri Oct 28 18:58:39 PDT 2011
Author: johnny
Date: Fri Oct 28 20:58:39 2011
New Revision: 143274
URL: http://llvm.org/viewvc/llvm-project?rev=143274&view=rev
Log:
Add a simple regression test to go with r143260.
CommandInterpreter::PreprocessCommand() should not infinite loop
when a target has not been specified yet.
Added:
lldb/trunk/test/functionalities/backticks/
lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py
Added: lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py?rev=143274&view=auto
==============================================================================
--- lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py (added)
+++ lldb/trunk/test/functionalities/backticks/TestBackticksWithoutATarget.py Fri Oct 28 20:58:39 2011
@@ -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()
More information about the lldb-commits
mailing list