summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py
blob: 7c8cf86341f445380e34df315facf811b1f7c4d9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 = TestBase.compute_mydir(__file__)

    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