From 3ead1e28774663514992adea4ad2c38b0416e66d Mon Sep 17 00:00:00 2001 From: negasora Date: Wed, 6 Jun 2018 14:28:20 -0400 Subject: Initial python API tests --- suite/testcommon.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'suite/testcommon.py') diff --git a/suite/testcommon.py b/suite/testcommon.py index 47e32e00..1bbc0d47 100644 --- a/suite/testcommon.py +++ b/suite/testcommon.py @@ -312,9 +312,6 @@ class BinaryViewTestBuilder(Builder): return retinfo - - - class TestBuilder(Builder): """ The TestBuilder is for tests that need to be checked against stored oracle data that isn't from a binary. These test are @@ -439,7 +436,6 @@ class TestBuilder(Builder): file_name = os.path.join(self.test_store, "helloworld") bv = binja.BinaryViewType.get_view_of_file(file_name) - preprocessed = binja.preprocess_source(""" #ifdef nonexistant int foo = 1; @@ -539,6 +535,8 @@ class TestBuilder(Builder): os.unlink(file_name) + os.unlink(file_name) + return retinfo def test_med_il_stack(self): @@ -572,7 +570,6 @@ class TestBuilder(Builder): retinfo.append("MLIL flag {} possible value at {}: ".format(flag, hex(ins.address)) + str(ins.get_possible_flag_values(flag))) retinfo.append("MLIL flag {} possible value after {}: ".format(flag, hex(ins.address)) + str(ins.get_possible_flag_values(flag))) - os.unlink(file_name) return retinfo @@ -767,4 +764,3 @@ class VerifyBuilder(Builder): return [str(functions == bndb_functions and comments == bndb_comments)] finally: os.unlink(temp_name) - -- cgit v1.3.1