5import isystem.connect
as ic
11def test_getSourceLocation():
12 connMgr = ic.ConnectionMgr()
13 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
15 addCtrl = ic.CAddressController(connMgr)
16 search_criteria = ic.CLineDescription(ic.CLineDescription.E_RESOURCE_FUNCTION,
21 ic.CLineDescription.E_SEARCH_CODE,
22 ic.CLineDescription.E_MATCH_PLAIN,
25 line_location = addCtrl.getSourceLocation(search_criteria)
26 msg = f
"Location of function call target_init(): "
27 msg += f
"{line_location.getFileName()}::{line_location.getLineNumber()}'"
31if __name__ ==
"__main__":
32 test_getSourceLocation()