summaryrefslogtreecommitdiff
path: root/suite/testcommon.py
diff options
context:
space:
mode:
authornegasora <negasora@gmail.com>2018-06-06 14:28:20 -0400
committerRyan Snyder <ryan@vector35.com>2018-07-10 18:11:09 -0400
commit3ead1e28774663514992adea4ad2c38b0416e66d (patch)
treed163b171b204d4b9fc6411b19a1d261401a8ecf6 /suite/testcommon.py
parent5cff3bf3cc5aa11875569a6aeddf88ef867411f1 (diff)
Initial python API tests
Diffstat (limited to 'suite/testcommon.py')
-rw-r--r--suite/testcommon.py8
1 files changed, 2 insertions, 6 deletions
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)
-