Skip to content

Commit

Permalink
fix test: functionNames contains symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
aeflores committed Nov 14, 2023
1 parent 46a7e49 commit 867e283
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/function_inference_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,10 @@ def test_code_exports_are_functions(self):
self.assertTrue(disassemble("ex.dll", format="--ir")[0])
ir = gtirb.IR.load_protobuf("ex.dll.gtirb")
module = ir.modules[0]
functionNames = set(module.aux_data["functionNames"].data.values())
functionNames = {
sym.name
for sym in module.aux_data["functionNames"].data.values()
}
self.assertIn("print_ok1", functionNames)
self.assertIn("print_ok2", functionNames)
self.assertIn("print_ok3", functionNames)
Expand Down

0 comments on commit 867e283

Please sign in to comment.