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

Method setUp

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

Source from the content-addressed store, hash-verified

45
46class Harness(TestCase):
47 def setUp(self):
48 self.build_command()
49 subprocess.check_output('objcopy --only-keep-debug dummy dummy.debug'
50 .split())
51 self.debug_command()
52 subprocess.check_output('strip dummy'.split())
53 self.process = subprocess.Popen('./dummy', stdout=subprocess.PIPE)
54 # The process prints out the address of some symbol, which we then
55 # try to resolve in the test.
56 self.addr = int(self.process.stdout.readline().strip(), 16)
57 self.syms = SymbolCache(self.process.pid)
58
59 def tearDown(self):
60 self.process.kill()

Callers

nothing calls this directly

Calls 3

SymbolCacheClass · 0.90
build_commandMethod · 0.45
debug_commandMethod · 0.45

Tested by

no test coverage detected