Subject: | t/db-recno.t fails if run in a path that contains spaces |
If the absolute path name of the directory the kit is expanded into
contains spaces, t/db-recno.t fails:
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/db-recno.t
t/db-recno....# failed: $VAR1 = [
[
'a'
],
-2,
1,
[
'B'
],
'void'
];
# error: different errors: 'Modification of non-creatable array value
attempted, subscript -2' vs 'Modification of non-creatable array value
attempted, subscript -2 at /Users/tom/Library/Application
Support/.cpan/build/DB_File-1.818-n0NHiB/blib/lib/DB_File.pm line 360.'
# failed: $VAR1 = [
[
'visibility',
'pocketful',
'rectangles'
],
-10,
0,
[
'garbages'
],
'void'
];
# error: different errors: 'Modification of non-creatable array value
attempted, subscript -10' vs 'Modification of non-creatable array value
attempted, subscript -10 at /Users/tom/Library/Application
Support/.cpan/build/DB_File-1.818-n0NHiB/blib/lib/DB_File.pm line 360.'
# failed: $VAR1 = [
[
'riheb'
],
-8,
undef,
[],
'void'
];
# error: different errors: 'Modification of non-creatable array value
attempted, subscript -8' vs 'Modification of non-creatable array value
attempted, subscript -8 at /Users/tom/Library/Application
Support/.cpan/build/DB_File-1.818-n0NHiB/blib/lib/DB_File.pm line 360.'
This can occur under Mac OS X, where CPAN's default directory is
"~/Library/Application Support/.cpan".
The attached unified diff appears to work whether or not the path
contains a space (sample size = 1 each way). It is to be applied to the
t/db-recno.t that is distributed with DB_File 1.818.
Subject: | db-recno.pat |
Message body not shown because it is not plain text.