summaryrefslogtreecommitdiffstats
path: root/dbase-tests.patch
diff options
context:
space:
mode:
Diffstat (limited to 'dbase-tests.patch')
-rw-r--r--dbase-tests.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/dbase-tests.patch b/dbase-tests.patch
new file mode 100644
index 0000000..7d2f09f
--- /dev/null
+++ b/dbase-tests.patch
@@ -0,0 +1,35 @@
+From d7dce1639a9d989a498c967d8e716c7cbb918a05 Mon Sep 17 00:00:00 2001
+From: "Christoph M. Becker" <cmbecker69@gmx.de>
+Date: Thu, 23 Jun 2022 00:16:37 +0200
+Subject: [PATCH] Ensure the clean section won't bork
+
+If the file already has been deleted, or never have been created in the
+first place, `unlink()` would throw a warning, and the test case might
+be marked as borked. We silence the call to avoid that.
+---
+ tests/002.phpt | 2 +-
+ tests/dbase_create_error_8.phpt | 2 +-
+ 2 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/tests/002.phpt b/tests/002.phpt
+index 30ac6bb..759957a 100644
+--- a/tests/002.phpt
++++ b/tests/002.phpt
+@@ -56,5 +56,5 @@ Done
+ <?php
+ $file = dirname(__FILE__)."/002.dbf";
+
+-unlink($file);
++@unlink($file);
+ ?>
+diff --git a/tests/dbase_create_error_8.phpt b/tests/dbase_create_error_8.phpt
+index e2a0b4c..5d6e3bd 100644
+--- a/tests/dbase_create_error_8.phpt
++++ b/tests/dbase_create_error_8.phpt
+@@ -148,5 +148,5 @@ bool(false)
+ <?php
+ define('FILENAME', __DIR__ . DIRECTORY_SEPARATOR . 'dbase_create_error.dbf');
+
+-unlink(FILENAME);
++@unlink(FILENAME);
+ ?>