llvm-project/lldb/test/functionalities/backticks/TestBackticksWithoutATarget.py

20 lines
440 B
Python

"""
Test that backticks without a target should work (not infinite looping).
"""
import lldb_shared
import os, time
import lldb
from lldbtest import *
class BackticksWithNoTargetTestCase(TestBase):
mydir = TestBase.compute_mydir(__file__)
@no_debug_info_test
def test_backticks_no_target(self):
"""A simple test of backticks without a target."""
self.expect("print `1+2-3`",
substrs = [' = 0'])