com php-src: Fix failing tests: ext/zip/tests/oo_unchangeInde x.phpt ext/zip/tests/oo_unchangeName.phpt

From: Date: Sun, 10 Feb 2019 00:27:38 +0000
Subject: com php-src: Fix failing tests: ext/zip/tests/oo_unchangeInde x.phpt ext/zip/tests/oo_unchangeName.phpt
Groups: php.cvs 
Request: Send a blank email to php-cvs+get-104508@lists.php.net to get a copy of this message
Commit: 650a217b0ca609119ba8f6dae501c3e8eae8bd35 Author: Peter Kokot <peterkokot@gmail.com> Sun, 10 Feb 2019 00:43:28 +0100 Parents: 4ae5691a60a4aaae86776205b3e938a8fecc66a7 Branches: PHP-7.4 master Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=650a217b0ca609119ba8f6dae501c3e8eae8bd35 Log: Fix failing tests The run-tests script executes the cleaning section separately and interfers with the running test itself less. This fixes two failing tests on Windows platforms. Changed paths: M ext/zip/tests/oo_unchangeIndex.phpt M ext/zip/tests/oo_unchangeName.phpt Diff: diff --git a/ext/zip/tests/oo_unchangeIndex.phpt b/ext/zip/tests/oo_unchangeIndex.phpt index eabb53c..f4b5a9a 100644 --- a/ext/zip/tests/oo_unchangeIndex.phpt +++ b/ext/zip/tests/oo_unchangeIndex.phpt @@ -29,8 +29,10 @@ var_dump($zip->getNameIndex(0)); var_dump($zip->getCommentIndex(0)); var_dump(md5_file($file)); - -unlink($file); +?> +--CLEAN-- +<?php +unlink(__DIR__.'/__tmp_oo_unchangeIndex.zip'); ?> --EXPECT-- string(32) "cb753d0a812b2edb386bdcbc4cd7d131" diff --git a/ext/zip/tests/oo_unchangeName.phpt b/ext/zip/tests/oo_unchangeName.phpt index 3e16980..23dd057 100644 --- a/ext/zip/tests/oo_unchangeName.phpt +++ b/ext/zip/tests/oo_unchangeName.phpt @@ -29,8 +29,10 @@ var_dump($zip->getNameIndex(0)); var_dump($zip->getCommentIndex(0)); var_dump(md5_file($file)); - -unlink($file); +?> +--CLEAN-- +<?php +unlink(__DIR__.'/__tmp_oo_unchangeIndex.zip'); ?> --EXPECT-- string(32) "cb753d0a812b2edb386bdcbc4cd7d131"

« previous php.cvs (#104508) next »