diff --git a/tests/test_example_elfs.py b/tests/test_example_elfs.py index 9d9527a..157515f 100644 --- a/tests/test_example_elfs.py +++ b/tests/test_example_elfs.py @@ -19,10 +19,17 @@ def test_simple_c() -> None: print(elf.code_relocations) print('\n') + section_count = 0 assert elf.sections for section in elf.sections: assert known_name(section.description), f"Section type {section.type} for {elf.architecture} in {path} is unknown." + for sym in section.symbols: + assert known_name(sym.info), f"Symbol info {sym.info} for {elf.architecture} in {path} is unknown." + section_count += 1 + + assert section_count > 2 + assert elf.symbols for sym in elf.symbols: assert known_name(sym.info), f"Symbol info {sym.info} for {elf.architecture} in {path} is unknown."