Package home | Report new bug | New search | Development Roadmap Status: Open | Feedback | All | Closed Since Version 1.6.9

Bug #21242 PHPUnit tests fail sometimes while deleting S.gpg-agent.extra.
Submitted: 2017-09-13 20:55 UTC
From: snarlistic Assigned: alec
Status: Closed Package: Crypt_GPG (version 1.6.2)
PHP Version: Irrelevant OS: Debian GNU/Linux
Roadmaps: (Not assigned)    
Subscription  


Anyone can comment on a bug. Have a simpler test case? Does it work for you on a different platform? Let us know! Just going to say 'Me too!'? Don't clutter the database with that please !
Your email address:
MUST BE VALID
Solve the problem : 25 + 46 = ?

 
 [2017-09-13 20:55 UTC] snarlistic (Freddy Spierenburg)
Description: ------------ Sometimes the PHPUnit tests fail while deleting S.gpg-agent.extra. I've created a work-around that first tests if the file exists before deleting it. Please find the patch attached. I've tried to built version 1.6.0, which is part of Debian Testing, but confirmed the problem exists in version 1.6.2 too. Test script: --------------- Within Debian running dpkg-buildpackage will for me produce the problem 3 out of 4 times.

Comments

 [2017-09-13 20:58 UTC] snarlistic (Freddy Spierenburg)
 [2017-09-13 21:04 UTC] snarlistic (Freddy Spierenburg)
Example output of the problem: phpunit --include-path Crypt_GPG-*/ Crypt_GPG-*/tests --exclude-group write PHPUnit 5.4.6 by Sebastian Bergmann and contributors. ....................................E..................S....... 63 / 292 ( 21%) ............................................................... 126 / 292 ( 43%) .............................SSSSSSSS.......................... 189 / 292 ( 64%) ...E.....E..................................................... 252 / 292 ( 86%) ........................................ 292 / 292 (100%) Time: 2.64 minutes, Memory: 10.00MB There were 3 errors: 1) DecryptTestCase::testDecryptDualOnePassphrase unlink(/home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/test-keychain/S.gpg-agent.extra): No such file or directory /home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/TestCase.php:598 /home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/TestCase.php:567 2) SignTestCase::testSignFileNormal unlink(/home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/test-keychain/S.gpg-agent.extra): No such file or directory /home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/TestCase.php:598 /home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/TestCase.php:567 3) SignTestCase::testSignFileDualClear unlink(/home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/test-keychain/S.gpg-agent.extra): No such file or directory /home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/TestCase.php:598 /home/freddy/foo/php-crypt-gpg-1.6.0/Crypt_GPG-1.6.0/tests/TestCase.php:567 ERRORS! Tests: 292, Assertions: 910, Errors: 3, Skipped: 9.
 [2017-09-16 11:11 UTC] alec (Aleksander Machniak)
-Status: Open +Status: Closed -Assigned To: +Assigned To: alec
This bug has been fixed in SVN. If this was a documentation problem, the fix will appear on pear.php.net by the end of next Sunday (CET). If this was a problem with the pear.php.net website, the change should be live shortly. Otherwise, the fix will appear in the package's next release. Thank you for the report and for helping us make PEAR better. Thanks.