Files
clang-p2996/lldb/test/API/tools/lldb-dap/stackTraceMissingFunctionName/TestDAP_stackTraceMissingFunctionName.py
Jonas Devlieghere 80fcecb13c [lldb] Replace assertEquals with assertEqual (NFC) (#82073)
assertEquals is a deprecated alias for assertEqual and has been removed
in Python 3.12. This wasn't an issue previously because we used a
vendored version of the unittest module. Now that we use the built-in
version this gets updated together with the Python version used to run
the test suite.
2024-02-16 20:58:50 -08:00

27 lines
731 B
Python

"""
Test lldb-dap stack trace response
"""
import dap_server
from lldbsuite.test.decorators import *
import os
import lldbdap_testcase
from lldbsuite.test import lldbtest, lldbutil
class TestDAP_stackTraceMissingFunctionName(lldbdap_testcase.DAPTestCaseBase):
@skipIfWindows
@skipIfRemote
def test_missingFunctionName(self):
"""
Test that the stack frame without a function name is given its pc in the response.
"""
program = self.getBuildArtifact("a.out")
self.build_and_launch(program)
self.continue_to_next_stop()
frame_without_function_name = self.get_stackFrames()[0]
self.assertEqual(frame_without_function_name["name"], "0x0000000000000000")