MCPcopy Create free account
hub / github.com/iovisor/bcc / build_command

Method build_command

tests/python/test_debuginfo.py:109–118  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

107
108class TestBuildid(Harness):
109 def build_command(self):
110 subprocess.check_output(('g++ -o dummy -Xlinker ' + \
111 '--build-id=0x123456789abcdef0123456789abcdef012345678 dummy.cc')
112 .split())
113 lines = subprocess.check_output('nm dummy'.split()).splitlines()
114 for line in lines:
115 if b"some_function" in line:
116 self.mangled_name = line.split(b' ')[2]
117 break
118 self.assertTrue(self.mangled_name)
119
120
121 def debug_command(self):

Callers 1

setUpMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected