(self, wasm_file, verify_func)
| 3179 | |
| 3180 | # Verify the existence (or lack thereof) of DWARF info in the given wasm file |
| 3181 | def verify_dwarf(self, wasm_file, verify_func): |
| 3182 | self.assertExists(wasm_file) |
| 3183 | info = self.run_process([LLVM_DWARFDUMP, '--all', wasm_file], stdout=PIPE).stdout |
| 3184 | verify_func('DW_TAG_subprogram', info) # Subprogram entry in .debug_info |
| 3185 | verify_func('debug_line[0x', info) # Line table |
| 3186 | |
| 3187 | def verify_dwarf_exists(self, wasm_file): |
| 3188 | self.verify_dwarf(wasm_file, self.assertIn) |
no test coverage detected