(self)
| 45 | |
| 46 | class 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() |
nothing calls this directly
no test coverage detected