com php-src: fix test if unlink fails occasionally: ext/pdo_sqlite/tests/bug70221.phpt
| From: | Anatol Belski | Date: | Sun, 01 May 2016 17:25:39 +0000 |
| Subject: | com php-src: fix test if unlink fails occasionally: ext/pdo_sqlite/tests/bug70221.phpt | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-91988@lists.php.net to get a copy of this message | ||
Commit: 5360b3de338f2945586ada962ef078ca2e43c5f3
Author: Anatol Belski <ab@php.net> Sun, 1 May 2016 19:25:39 +0200
Parents: 81e62e66d64117c85792bfb5413ba2fc8dd7b528
Branches: PHP-7.0 master
Link: http://git.php.net/?p=php-src.git;a=commitdiff;h=5360b3de338f2945586ada962ef078ca2e43c5f3
Log:
fix test if unlink fails occasionally
Changed paths:
M ext/pdo_sqlite/tests/bug70221.phpt
Diff:
diff --git a/ext/pdo_sqlite/tests/bug70221.phpt b/ext/pdo_sqlite/tests/bug70221.phpt
index bead80d..2d1aea0 100644
--- a/ext/pdo_sqlite/tests/bug70221.phpt
+++ b/ext/pdo_sqlite/tests/bug70221.phpt
@@ -12,7 +12,7 @@ function _test() { return 42; }
$db->sqliteCreateFunction('test', '_test', 0);
print("Everything is fine, no exceptions here\n");
unset($db);
-unlink($dbfile);
+@unlink($dbfile);
?>
--EXPECT--
Everything is fine, no exceptions here