From 1157c414109c4e462ba5dcfb5bd5ec5580ba7c34 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Wed, 30 Oct 2024 21:30:47 +0100 Subject: [PATCH] [ticket/15851] Skip unreadable file tests on windows PHPBB-15851 --- tests/update/get_updates_test.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/update/get_updates_test.php b/tests/update/get_updates_test.php index 01b76aa5f4..b21a53659d 100644 --- a/tests/update/get_updates_test.php +++ b/tests/update/get_updates_test.php @@ -142,6 +142,11 @@ class phpbb_update_get_updates_test extends phpbb_test_case public function test_validate_file_not_accessible() { + if (strtolower(substr(PHP_OS, 0, 3)) === 'win') + { + $this->markTestSkipped('Unable to test unreadable files on Windows'); + } + $keypair = sodium_crypto_sign_keypair(); $public_key = base64_encode(sodium_crypto_sign_publickey($keypair)); @@ -160,6 +165,11 @@ class phpbb_update_get_updates_test extends phpbb_test_case public function test_validate_sig_not_accessible() { + if (strtolower(substr(PHP_OS, 0, 3)) === 'win') + { + $this->markTestSkipped('Unable to test unreadable files on Windows'); + } + $keypair = sodium_crypto_sign_keypair(); $secret_key = sodium_crypto_sign_secretkey($keypair);