"""
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()

"""
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__)

    @unittest2.expectedFailure # llvm.org/pr19241 IRInterpreter does not handle metadata
    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()

Add expected failure annotation for llvm.org/pr19241
Add expected failure annotation for llvm.org/pr19241


git-svn-id: 4c4cc70b1ef44ba2b7963015e681894188cea27e@204718 91177308-0d34-0410-b5e6-96231b3b80d8
