diff options
Diffstat (limited to 'tests/format/elf/oob_section_name.py')
-rw-r--r-- | tests/format/elf/oob_section_name.py | 17 |
1 files changed, 15 insertions, 2 deletions
diff --git a/tests/format/elf/oob_section_name.py b/tests/format/elf/oob_section_name.py index a478ec7..64d7dc3 100644 --- a/tests/format/elf/oob_section_name.py +++ b/tests/format/elf/oob_section_name.py @@ -30,7 +30,20 @@ class TestNonExistingBinary(ChrysalideTestCase): fullname = sys.modules[cls.__module__].__file__ dirpath = os.path.dirname(fullname) - os.system('make -C %s oob_section_name 2>&1 > /dev/null' % dirpath) + os.system('make -C %s oob_section_name > /dev/null 2>&1' % dirpath) + + + @classmethod + def tearDownClass(cls): + + super(TestNonExistingBinary, cls).tearDownClass() + + cls.log('Delete built binaries...') + + fullname = sys.modules[cls.__module__].__file__ + dirpath = os.path.dirname(fullname) + + os.system('make -C %s clean > /dev/null 2>&1' % dirpath) def testOOBSectionName(self): @@ -44,5 +57,5 @@ class TestNonExistingBinary(ChrysalideTestCase): cnt = FileContent(fullname[:baselen] + 'oob_section_name') self.assertIsNotNone(cnt) - fmt = ElfFormat(cnt, None, None) + fmt = ElfFormat(cnt) self.assertIsInstance(fmt, ElfFormat) |