]> granicus.if.org Git - zziplib/commitdiff
check on test_64018
authorGuido Draheim <guidod@gmx.de>
Mon, 5 Feb 2018 10:47:45 +0000 (11:47 +0100)
committerGuido Draheim <guidod@gmx.de>
Mon, 5 Feb 2018 10:47:45 +0000 (11:47 +0100)
test/zziptests.py

index bcb0508795d623d8f72b8b64dc53825c44718356..117eb166f57e8c5c13b9db653b661f95c10b6357 100644 (file)
@@ -2280,11 +2280,11 @@ class ZZipTest(unittest.TestCase):
     file_url = self.url_CVE_2018_10
     download_raw(file_url, filename, tmpdir)
     exe = self.bins("zzdir")
-    run = shell("{exe} {tmpdir}/{filename} ".format(**locals()),
-        returncodes = [0,3])
+    run = shell("cd {tmpdir} && ../{exe} {filename} ".format(**locals()),
+        returncodes = [1])
     self.assertLess(len(run.output), 1)
     self.assertLess(len(errors(run.errors)), 80)
-    self.assertIn(": Success", run.errors)
+    self.assertTrue(greps(run.errors, "Invalid or"))
   def test_63019(self):
     """ check $(CVE).zip  """
     tmpdir = self.testdir()