[CNANDOR - Fri Nov 12 01:26:47 2004]:
Show quoted text> Odd. Please rerun make test with `make test TEST_VERBOSE=1`, and send
> in
> the output, along with the output of `perl -V`. Thanks,
(after setting the plan back to 23)
It looks like having textedit or the calculator running prior to the
tests throws things off. If I have one of them running, the tests fail.
If I stop both of them, the tests pass.
Hope this helps!
---
This is with textedit running:
phillip$ make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/launch....1..23
ok 1 - use Mac::Apps::Launch;
ok 2 # skip Not MacPerl
not ok 3 - Hide # TODO no Mac::Apps::Launch Hide/Show on Mac OS X
# Failed (TODO) test (t/launch.t at line 32)
not ok 4 - Show # TODO no Mac::Apps::Launch Hide/Show on Mac OS X
# Failed (TODO) test (t/launch.t at line 33)
ok 5 - IsRunning
ok 6 - IsRunning
ok 7 - SetFront
ok 8 - IsRunning
ok 9 - LaunchSpecs
ok 10 - IsRunning
ok 11 - Find /Applications/Calculator.app
ok 12 - Kill /Applications/Calculator.app
ok 13 - Don't find /Applications/Calculator.app
ok 14 - IsRunning
ok 15 - IsRunning
ok 16 - LaunchSpecs
ok 17 - IsRunning
# Looks like you planned 23 tests but only ran 22.
ok 18 - Find /Applications/TextEdit.app
ok 19 # skip /Applications/TextEdit.app was previously running
ok 20 # skip /Applications/TextEdit.app was previously running
ok 21 # skip Mac::Apps::Launch Quit/Launch Finder
ok 22 # skip Mac::Apps::Launch Quit/Launch Finder
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 23
Failed 1/23 tests, 95.65% okay (less 5 skipped tests: 17 okay,
73.91%)
t/pod.......1..1
ok 1 - POD test for blib/lib/Mac/Apps/Launch.pm
ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/launch.t 1 256 23 2 8.70% 23
5 subtests skipped.
Failed 1/2 test scripts, 50.00% okay. 1/24 subtests failed, 95.83% okay.
make: *** [test_dynamic] Error 2
phillip$ perl -V
Summary of my perl5 (revision 5.0 version 8 subversion 1 RC3) configuration:
Platform:
osname=darwin, osvers=7.0, archname=darwin-thread-multi-2level
uname='darwin hampsten 7.0 darwin kernel version 6.0: fri jul 25
16:58:41 pdt 2003;
root:xnu-344.frankd.rootsxnu-344.frankd~objrelease_ppc power macintosh
powerpc '
config_args='-ds -e -Dprefix=/usr -Dccflags=-g -pipe
-Dldflags=-Dman3ext=3pm -Duseithreads -Duseshrplib'
hint=recommended, useposix=true, d_sigaction=define
usethreads=define use5005threads=undef useithreads=define
usemultiplicity=define
useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
use64bitint=undef use64bitall=undef uselongdouble=undef
usemymalloc=n, bincompat5005=undef
Compiler:
cc='cc', ccflags ='-g -pipe -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include',
optimize='-Os',
cppflags='-no-cpp-precomp -g -pipe -pipe -fno-common -DPERL_DARWIN
-no-cpp-precomp -fno-strict-aliasing -I/usr/local/include'
ccversion='', gccversion='3.3 20030304 (Apple Computer, Inc. build
1495)', gccosandvers=''
intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=8
ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
alignbytes=8, prototype=define
Linker and Libraries:
ld='MACOSX_DEPLOYMENT_TARGET=10.3 cc', ldflags ='-L/usr/local/lib'
libpth=/usr/local/lib /usr/lib
libs=-ldbm -ldl -lm -lc
perllibs=-ldl -lm -lc
libc=/usr/lib/libc.dylib, so=dylib, useshrplib=true,
libperl=libperl.dylib
gnulibc_version=''
Dynamic Linking:
dlsrc=dl_dyld.xs, dlext=bundle, d_dlsymun=undef, ccdlflags=' '
cccdlflags=' ', lddlflags='-bundle -undefined dynamic_lookup
-L/usr/local/lib'
Characteristics of this binary (from libperl):
Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES
PERL_IMPLICIT_CONTEXT
Locally applied patches:
RC3
Built under darwin
Compiled at Sep 12 2003 19:50:49
@INC:
/System/Library/Perl/5.8.1/darwin-thread-multi-2level
/System/Library/Perl/5.8.1
/Library/Perl/5.8.1/darwin-thread-multi-2level
/Library/Perl/5.8.1
/Library/Perl
/Network/Library/Perl/5.8.1/darwin-thread-multi-2level
/Network/Library/Perl/5.8.1
/Network/Library/Perl
.
---------
Now comes the interesting part. I noticed that tests 19 and 20 were
skipped because textedit was already running.
So, I quit textedit and re-ran the tests. Here is what I got:
---------
make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/launch....1..23
ok 1 - use Mac::Apps::Launch;
ok 2 # skip Not MacPerl
not ok 3 - Hide # TODO no Mac::Apps::Launch Hide/Show on Mac OS X
# Failed (TODO) test (t/launch.t at line 32)
not ok 4 - Show # TODO no Mac::Apps::Launch Hide/Show on Mac OS X
# Failed (TODO) test (t/launch.t at line 33)
ok 5 - IsRunning
ok 6 - IsRunning
ok 7 - SetFront
ok 8 - IsRunning
ok 9 - LaunchSpecs
ok 10 - IsRunning
ok 11 - Find /Applications/TextEdit.app
ok 12 - Kill /Applications/TextEdit.app
ok 13 - Don't find /Applications/TextEdit.app
ok 14 - IsRunning
ok 15 - IsRunning
ok 16 - LaunchSpecs
ok 17 - IsRunning
ok 18 - Find /Applications/Calculator.app
ok 19 - Kill /Applications/Calculator.app
ok 20 - Don't find /Applications/Calculator.app
ok 21 - IsRunning
ok 22 # skip Mac::Apps::Launch Quit/Launch Finder
ok 23 # skip Mac::Apps::Launch Quit/Launch Finder
ok
3/23 skipped: various reasons
t/pod.......1..1
ok 1 - POD test for blib/lib/Mac/Apps/Launch.pm
ok
All tests successful, 3 subtests skipped.
Files=2, Tests=24, 14 wallclock secs ( 0.60 cusr + 0.28 csys = 0.88 CPU)
-------
Starting textedit and running the test again caused the failure noted above.
Next, I shut down textedit and started up the calculator instead. I got
this:
-------
phillip$ make test TEST_VERBOSE=1
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e"
"test_harness(1, 'blib/lib', 'blib/arch')" t/*.t
t/launch....1..23
ok 1 - use Mac::Apps::Launch;
ok 2 # skip Not MacPerl
not ok 3 - Hide # TODO no Mac::Apps::Launch Hide/Show on Mac OS X
# Failed (TODO) test (t/launch.t at line 32)
not ok 4 - Show # TODO no Mac::Apps::Launch Hide/Show on Mac OS X
# Failed (TODO) test (t/launch.t at line 33)
ok 5 - IsRunning
ok 6 - IsRunning
ok 7 - SetFront
ok 8 - IsRunning
ok 9 - LaunchSpecs
ok 10 - IsRunning
ok 11 - Find /Applications/TextEdit.app
ok 12 - Kill /Applications/TextEdit.app
ok 13 - Don't find /Applications/TextEdit.app
ok 14 - IsRunning
ok 15 - IsRunning
ok 16 - LaunchSpecs
ok 17 - IsRunning
# Looks like you planned 23 tests but only ran 22.
ok 18 - Find /Applications/Calculator.app
ok 19 # skip /Applications/Calculator.app was previously running
ok 20 # skip /Applications/Calculator.app was previously running
ok 21 # skip Mac::Apps::Launch Quit/Launch Finder
ok 22 # skip Mac::Apps::Launch Quit/Launch Finder
dubious
Test returned status 1 (wstat 256, 0x100)
DIED. FAILED test 23
Failed 1/23 tests, 95.65% okay (less 5 skipped tests: 17 okay,
73.91%)
t/pod.......1..1
ok 1 - POD test for blib/lib/Mac/Apps/Launch.pm
ok
Failed Test Stat Wstat Total Fail Failed List of Failed
-------------------------------------------------------------------------------
t/launch.t 1 256 23 2 8.70% 23
5 subtests skipped.
Failed 1/2 test scripts, 50.00% okay. 1/24 subtests failed, 95.83% okay.
make: *** [test_dynamic] Error 2