1"""
2Test that backticks without a target should work (not infinite looping).
3"""
4
5import os, time
6import unittest2
7import lldb
8from lldbtest import *
9
10class BackticksWithNoTargetTestCase(TestBase):
11
12    mydir = "functionalities/backticks"
13
14    def test_backticks_no_target(self):
15        """A simple test of backticks without a target."""
16        self.expect("print `1+2-3`",
17            substrs = [' = 0'])
18
19if __name__ == '__main__':
20    import atexit
21    lldb.SBDebugger.Initialize()
22    atexit.register(lambda: lldb.SBDebugger.Terminate())
23    unittest2.main()
24