diff options
| author | Rusty Wagner <rusty.wagner@gmail.com> | 2022-06-16 18:23:22 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty.wagner@gmail.com> | 2022-06-17 18:43:22 -0400 |
| commit | 45bd3537e5e082e01d1df88585fc2e6c691b1d1d (patch) | |
| tree | bc2769198c0c31cc44dda509722ccc95dd4b65e4 | |
| parent | 9920cd48014c17104fef3635fa1d363445a111ac (diff) | |
Unit test for function type and Win32 x86 calling conventions
| m--------- | suite/binaries | 0 | ||||
| -rw-r--r-- | suite/testcommon.py | 9 |
2 files changed, 9 insertions, 0 deletions
diff --git a/suite/binaries b/suite/binaries -Subproject e0e9b5f96a5aba1c02f7c75fecb0b9fcf0f40f6 +Subproject 08becde098fdcb4801824f4c771c664429e4b41 diff --git a/suite/testcommon.py b/suite/testcommon.py index 99e9c6b9..db0c79de 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -359,6 +359,15 @@ class BinaryViewTestBuilder(Builder): retinfo.append(f"Function: {func.start:x} Instruction: {hlilins.address:x} HLIL->MLILS instruction: {str(sorted(list(map(str, hlilins.mlils))))}") return retinfo + def test_function_type(self): + """Function types don't match""" + retinfo = [] + for func in self.bv.functions: + if func.hlil is None or func.hlil.root is None: + continue + retinfo.append(f"Function: {func.start:x} Type: {func.function_type}") + return retinfo + def test_functions_attributes(self): """Function attributes don't match""" funcinfo = [] |
