diff options
| author | Rusty Wagner <rusty@vector35.com> | 2020-04-30 21:58:34 -0400 |
|---|---|---|
| committer | Rusty Wagner <rusty@vector35.com> | 2020-05-04 21:11:43 -0400 |
| commit | 38040844e78916e5ec2a861c0ba5794d99ac2d0e (patch) | |
| tree | 68678bba6d004928517f3a9e09da79806cb7bfdb | |
| parent | 9cfee428e755caee9c3e8979fd1b68a669ccb51a (diff) | |
HLIL unit tests
| m--------- | suite/binaries | 0 | ||||
| -rw-r--r-- | suite/testcommon.py | 8 |
2 files changed, 8 insertions, 0 deletions
diff --git a/suite/binaries b/suite/binaries -Subproject 127ed78de222ae34a87c34c22d978276a9b4561 +Subproject eddb0873183c323aa294037aa04410730f9be2f diff --git a/suite/testcommon.py b/suite/testcommon.py index 13267eac..3953bf05 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -337,6 +337,14 @@ class BinaryViewTestBuilder(Builder): retinfo.append("Function: {:x} Instruction: {}: {}".format(func.start, hex(ins[1]), ''.join([str(i) for i in ins[0]]))) return fixOutput(retinfo) + def test_function_hlil(self): + """Function HLIL produced different output""" + retinfo = [] + for func in self.bv.functions: + for line in func.hlil.root.lines: + retinfo.append("Function: {:x} HLIL line: {}".format(func.start, str(line))) + return fixOutput(retinfo) + def test_functions_attributes(self): """Function attributes don't match""" funcinfo = [] |
