diff options
author | Timothy Legge <timlegge@gmail.com> | 2018-11-25 02:43:06 +0000 |
---|---|---|
committer | Kevin Daudt <kdaudt@alpinelinux.org> | 2019-04-12 10:47:59 +0000 |
commit | 09ed8b2acd22edd570e107670bc6220eaef39cf3 (patch) | |
tree | 07a5020b5c6c6d838d80744663d5b76a8fe13827 /testing/perl-db_file-lock/fix-bug-98224-test-fails.patch | |
parent | 1245056475ad59a71c91494d1e1820f323e22911 (diff) | |
download | aports-09ed8b2acd22edd570e107670bc6220eaef39cf3.tar.bz2 aports-09ed8b2acd22edd570e107670bc6220eaef39cf3.tar.xz |
testing/perl-db_file-lock: new aport
Includes patch to fix Bug #98224 for DB_File-Lock: Test fails with perl 5.21.x: Can't use 'defined(%hash)'
Diffstat (limited to 'testing/perl-db_file-lock/fix-bug-98224-test-fails.patch')
-rw-r--r-- | testing/perl-db_file-lock/fix-bug-98224-test-fails.patch | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/testing/perl-db_file-lock/fix-bug-98224-test-fails.patch b/testing/perl-db_file-lock/fix-bug-98224-test-fails.patch new file mode 100644 index 0000000000..40a9adf9b2 --- /dev/null +++ b/testing/perl-db_file-lock/fix-bug-98224-test-fails.patch @@ -0,0 +1,16 @@ +diff --git a/test.pl b/test.pl +old mode 100644 +new mode 100755 +index 92ebcf6..cba6da6 +--- a/test.pl ++++ b/test.pl +@@ -81,7 +81,7 @@ if ( not defined $pid ) { + sleep(1); + $TEST_NUM += 2; + report_result( not tie %hash3, 'DB_File::Lock', $file1, O_RDWR, 0600, $DB_HASH, $nonblock_write ); +- report_result( not defined %hash3 ); # double check and satisfy -w about %hash3 ++ report_result( not keys %hash3 ); # double check and satisfy -w about %hash3 + $TEST_NUM += 1; + report_result( wait() == $pid ); + report_result( tie %hash3, 'DB_File::Lock', $file1, O_RDWR, 0600, $DB_HASH, $nonblock_write ); +-- |