From f6766ac612af9de823df301a94a9ce33c8be0aea Mon Sep 17 00:00:00 2001 From: Guido Draheim Date: Mon, 5 Feb 2018 11:12:02 +0100 Subject: [PATCH] double check test_65414 --- test/zziptests.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/test/zziptests.py b/test/zziptests.py index 9da6600..c367835 100644 --- a/test/zziptests.py +++ b/test/zziptests.py @@ -2748,14 +2748,17 @@ class ZZipTest(unittest.TestCase): self.assertLess(len(errors(run.errors)), 200) self.assertIn(": Success", run.errors) # - run = shell("cd {tmpdir} && ../{exe} -p {filename} ".format(**locals()), - returncodes = [0,3]) run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()), returncodes = [0,3]) self.assertLess(len(run.output), 30) self.assertLess(len(errors(run.errors)), 10) + self.assertTrue(greps(run.errors, "Zipfile corrupted")) # self.assertEqual(os.path.getsize(tmpdir+"/test"), 3) self.assertFalse(os.path.exists(tmpdir+"/test")) + # + run = shell("cd {tmpdir} && ../{exe} -p {filename} ".format(**locals()), + returncodes = [0,3]) + self.assertTrue(greps(run.errors, "Zipfile corrupted")) self.rm_testdir() def test_65419(self): """ check $(CVE).zip """ -- 2.40.0