summaryrefslogtreecommitdiffstats
path: root/gnupg-tests.patch
diff options
context:
space:
mode:
authorRemi Collet <remi@remirepo.net>2025-04-08 17:15:24 +0200
committerRemi Collet <remi@php.net>2025-04-08 17:15:24 +0200
commite89bd3557b568cd8b48b859bbc74642b439f0c2a (patch)
tree5bc5590008fc4b62d382787abd4929da707efa80 /gnupg-tests.patch
parent7114203ef3846709f24d74d037b7832feb07edec (diff)
add option to run tests with gpg1 instead og gpg2HEADmaster
Diffstat (limited to 'gnupg-tests.patch')
-rw-r--r--gnupg-tests.patch27
1 files changed, 27 insertions, 0 deletions
diff --git a/gnupg-tests.patch b/gnupg-tests.patch
index 17a858c..1bb6e4a 100644
--- a/gnupg-tests.patch
+++ b/gnupg-tests.patch
@@ -20,3 +20,30 @@ index 2b8aa08..7b06a0a 100644
}
/**
+From ce9e56099fa619f368676ccaa6b005c8d69f6f12 Mon Sep 17 00:00:00 2001
+From: Remi Collet <remi@remirepo.net>
+Date: Tue, 8 Apr 2025 16:59:40 +0200
+Subject: [PATCH] clean hidden files
+
+---
+ tests/gnupgt.inc | 7 ++++---
+ 1 file changed, 4 insertions(+), 3 deletions(-)
+
+diff --git a/tests/gnupgt.inc b/tests/gnupgt.inc
+index 2b8aa08..7191ec1 100644
+--- a/tests/gnupgt.inc
++++ b/tests/gnupgt.inc
+@@ -90,9 +90,10 @@ class gnupgt {
+ if (!is_dir($homeDir)) {
+ return;
+ }
+- foreach (glob($homeDir . '/*') as $filename) {
+- if (!is_dir($filename)) {
+- unlink($filename);
++ $dir = opendir($homeDir);
++ while ($filename = readdir($dir)) {
++ if (!is_dir("$homeDir/$filename")) {
++ unlink("$homeDir/$filename");
+ }
+ }
+ $privKeyDir = self::get_priv_key_dir($homeDir);