self.assertLess(len(run.output), 1)
self.assertLess(len(errors(run.errors)), 1)
self.rm_testdir()
- @unittest.expectedFailure
def test_63813(self):
""" unzzip-mix -l $(CVE).zip """
tmpdir = self.testdir()
download(file_url, filename, tmpdir)
exe = self.bins("unzzip-mix")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
- returncodes = [0])
+ returncodes = [0,2])
self.assertLess(len(run.output), 1)
- self.assertLess(len(errors(run.errors)), 1)
+ self.assertTrue(grep(run.errors, "central directory not found"))
self.rm_testdir()
def test_63814(self):
""" unzzip-zap -l $(CVE).zip """
download(file_url, filename, tmpdir)
exe = self.bins("unzzip")
run = shell("{exe} -l {tmpdir}/{filename} ".format(**locals()),
- returncodes = [0, 255])
+ returncodes = [0,3])
self.assertLess(len(run.output), 1)
self.assertLess(len(errors(run.errors)), 200)
self.assertIn(": Success", run.errors)
# self.assertEqual(os.path.getsize(tmpdir+"/test"), 3)
self.assertFalse(os.path.exists(tmpdir+"/test"))
self.rm_testdir()
- @unittest.expectedFailure
def test_63818(self):
""" unzzip-mix $(CVE).zip """
tmpdir = self.testdir()
download(file_url, filename, tmpdir)
exe = self.bins("unzzip-mix")
run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
- returncodes = [0])
+ returncodes = [0,2])
self.assertLess(len(run.output), 30)
self.assertLess(len(errors(run.errors)), 10)
# self.assertEqual(os.path.getsize(tmpdir+"/test"), 3)
self.assertFalse(os.path.exists(tmpdir+"/test"))
self.rm_testdir()
- @unittest.expectedFailure
def test_63819(self):
""" unzzip $(CVE).zip """
tmpdir = self.testdir()
download(file_url, filename, tmpdir)
exe = self.bins("unzzip")
run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
- returncodes = [0])
+ returncodes = [0,3])
self.assertLess(len(run.output), 30)
self.assertLess(len(errors(run.errors)), 10)
# self.assertEqual(os.path.getsize(tmpdir+"/test"), 3)