summaryrefslogtreecommitdiff
path: root/tests/format/errors.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/format/errors.py')
-rw-r--r--tests/format/errors.py17
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/format/errors.py b/tests/format/errors.py
index 36b7129..4ee38f1 100644
--- a/tests/format/errors.py
+++ b/tests/format/errors.py
@@ -27,7 +27,20 @@ class TestFormatErrors(ChrysalideTestCase):
fullname = sys.modules[cls.__module__].__file__
dirpath = os.path.dirname(fullname)
- os.system('make -C %s%self strings 2>&1 > /dev/null' % (dirpath, os.sep))
+ os.system('make -C %s%self strings > /dev/null 2>&1' % (dirpath, os.sep))
+
+
+ @classmethod
+ def tearDownClass(cls):
+
+ super(TestFormatErrors, cls).tearDownClass()
+
+ cls.log('Delete built binaries...')
+
+ fullname = sys.modules[cls.__module__].__file__
+ dirpath = os.path.dirname(fullname)
+
+ os.system('make -C %s%self clean > /dev/null 2>&1' % (dirpath, os.sep))
def testBasic(self):
@@ -49,7 +62,7 @@ class TestFormatErrors(ChrysalideTestCase):
baselen = len(fullname) - len(filename)
cnt = FileContent(fullname[:baselen] + 'elf' + os.sep + 'strings')
- fmt = ElfFormat(cnt, None, None)
+ fmt = ElfFormat(cnt)
for i in range(errlen):