Subject: | t/03_audotinstall.t hangs |
My best guess is that the fooling around with STDOUT is causing a hang deep in
Cwd::_backtick_pwd().
-Ken
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Module::Install
% make
<output omitted>
% make test TEST_FILES=t/03_audotinstall.t TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(1, 'inc',
'blib/lib', 'blib/arch')" t/03_audotinstall.t
t/03_audotinstall....1..6
# Running under perl version 5.008006 for darwin
# Current time local: Mon Sep 17 16:52:55 2007
# Current time GMT: Mon Sep 17 21:52:55 2007
# Using Test.pm version 1.25
ok 1
ok 2
ok 3
ok 4
ok 5
<hangs until I hit control-c>
Running under the debugger, I can get a stack trace:
% perl -d -Mblib t/03_audotinstall.t
Loading DB routines from perl5db.pl version 1.28
Editor support available.
Enter h or `h h' for help, or `man perldebug' for more help.
1..6
# Running under perl version 5.008006 for darwin
# Current time local: Mon Sep 17 16:54:59 2007
# Current time GMT: Mon Sep 17 21:54:59 2007
# Using Test.pm version 1.25
main::(t/03_audotinstall.t:9): my $mm_args;
DB<1> c
ok 1
ok 2
ok 3
ok 4
ok 5
^CCwd::_backtick_pwd(/System/Library/Perl/5.8.6/darwin-thread-multi-2level/Cwd.pm:
326):
326: local $/ = "\n";
DB<1> T
$ = Cwd::_backtick_pwd() called from file `/System/Library/Perl/5.8.6/CPAN/FirstTime.pm'
line 173
. = CPAN::FirstTime::init('/Users/u0048513/Library/Application Support/.cpan/CPAN/
MyConfig.pm', 'args', ref(ARRAY)) called from file `/System/Library/Perl/5.8.6/CPAN/
HandleConfig.pm' line 474
. = CPAN::HandleConfig::load('CPAN::HandleConfig') called from file `/Users/
u0048513/.cpan/build/Module-Install-0.67/blib/lib/Module/AutoInstall.pm' line 638
. = Module::AutoInstall::_load_cpan() called from file `/Users/u0048513/.cpan/build/
Module-Install-0.67/blib/lib/Module/AutoInstall.pm' line 250
$ = Module::AutoInstall::_check_lock() called from file `/Users/u0048513/.cpan/build/
Module-Install-0.67/blib/lib/Module/AutoInstall.pm' line 216
$ = Module::AutoInstall::import('Module::AutoInstall', '-version', 0.21, '-config', ref(HASH), '-
core', ref(ARRAY), 'Feature1', ref(ARRAY), 'Feature2', ref(ARRAY), 'Feature3', ref(HASH)) called
from file `(eval 18)[t/03_audotinstall.t:40]' line 2
$ = main::BEGIN() called from file `/System/Library/Perl/5.8.6/CPAN/FirstTime.pm' line 22
$ = eval {...} called from file `/System/Library/Perl/5.8.6/CPAN/FirstTime.pm' line 22
$ = eval 'use Module::AutoInstall (
-version => \'0.21\', # Module::AutoInstall version
-config => {
make_args => \'--hello\' # option(s) for CPAN::Config
},
-core => [ # core modules
Package0 => \'\', # any version would do
],
\'Feature1\' => [
# do we want to install this feature by default?
-default ... called from file `t/03_audotinstall.t' line 40