blob: 93ae5d05e9d6c50be50eb0d0cb3de64cca70a404 [file]
"""
Test lldb-dap launch request.
"""
from lldbsuite.test.decorators import expectedFailureWindows
import lldbdap_testcase
class TestDAP_launch_basic(lldbdap_testcase.DAPTestCaseBase):
"""
Tests the default launch of a simple program. No arguments,
environment, or anything else is specified.
"""
def test(self):
program = self.getBuildArtifact("a.out")
self.build_and_launch(program)
self.continue_to_exit()
# Now get the STDOUT and verify our program argument is correct
output = self.get_stdout()
self.assertTrue(output and len(output) > 0, "expect program output")
lines = output.splitlines()
self.assertIn(program, lines[0], "make sure program path is in first argument")