Skip Menu |
 

This queue is for tickets about the XML-Generator CPAN distribution.

Report information
The Basics
Id: 3220
Status: resolved
Priority: 0/
Queue: XML-Generator

People
Owner: Nobody in particular
Requestors: muenalan [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.93
Fixed in: (no value)



Subject: [perl5.8.0/Win32] FAILED TESTS
Download (untitled) / with headers
text/plain 1.2k
Merdè, my beloved mega-hyper "XML::Generator" isnt installing ;( Report is appended. I suspect XML::Generator::DOM isn't found, because it lays in the main directory instead of Generator/DOM.pm. Suggestion: 1 Create dir Generator 2 Move DOM.pm into 1 3 Modify MANIFEST Greetings, Murat V:\.cpan\build\XML-Generator-0.93>nmake test TEST_VERBOSE=1 Microsoft (R) Program Maintenance Utility Version 7.00.9466 Copyright (C) Microsoft Corporation. All rights reserved. C:\Programme\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(1, 'blib\lib', 'blib\arch')" t\DOM.t t\Generator.t t\DOM..........FAILED before any test output arrived t\Generator....1..47 ok 1 ok 2 ok 3 ok 4 ok 5 ok 6 ok 7 ok 8 ok 9 ok 10 ok 11 ok 12 ok 13 ok 14 ok 15 ok 16 ok 17 ok 18 ok 19 ok 20 ok 21 ok 22 ok 23 ok 24 ok 25 ok 26 ok 27 ok 28 ok 29 ok 30 ok 31 ok 32 ok 33 ok 34 ok 35 ok 36 ok 37 ok 38 ok 39 ok 40 ok 41 ok 42 ok 43 ok 44 ok 45 ok 46 ok 47 # <foo>&lt;&#162;&gt;</foo> ok Failed Test Stat Wstat Total Fail Failed List of Failed ------------------------------------------------------------------------------- t\DOM.t ?? ?? % ?? Failed 1/2 test scripts, 50.00% okay. 0/47 subtests failed, 100.00% okay. NMAKE : fatal error U1077: 'C:\Programme\Perl\bin\perl.exe' : return code '0xff' Stop.
From: bholzman [...] earthlink.net
Download (untitled) / with headers
text/plain 1.8k
Murat, I'm sorry that you are having trouble. I don't think your analysis is quite right, although I'm not sure as I've never installed XML::Generator on windows using nmake. However, DOM.pm should be copied into blib/lib/XML/Generator/DOM.pm automatically before the tests are run, by the 'pm_to_blib' make target. What do you get if you just run: perl -Mblib t/DOM.t ? Thanks, Benjamin Holzman [guest - Tue Aug 12 12:49:15 2003]: Show quoted text
> Merdè, > > my beloved mega-hyper "XML::Generator" isnt installing ;( Report is > appended. I suspect XML::Generator::DOM isn't found, because it lays > in the main directory instead of Generator/DOM.pm. > > Suggestion: > 1 Create dir Generator > 2 Move DOM.pm into 1 > 3 Modify MANIFEST > > Greetings, > Murat > > V:\.cpan\build\XML-Generator-0.93>nmake test TEST_VERBOSE=1 > > Microsoft (R) Program Maintenance Utility Version 7.00.9466 > Copyright (C) Microsoft Corporation. All rights reserved. > > C:\Programme\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" > "test_harness(1, 'blib\lib', 'blib\arch')" t\DOM.t t\Generator.t > t\DOM..........FAILED before any test output arrived > t\Generator....1..47 > ok 1 > ok 2 > ok 3 > ok 4 > ok 5 > ok 6 > ok 7 > ok 8 > ok 9 > ok 10 > ok 11 > ok 12 > ok 13 > ok 14 > ok 15 > ok 16 > ok 17 > ok 18 > ok 19 > ok 20 > ok 21 > ok 22 > ok 23 > ok 24 > ok 25 > ok 26 > ok 27 > ok 28 > ok 29 > ok 30 > ok 31 > ok 32 > ok 33 > ok 34 > ok 35 > ok 36 > ok 37 > ok 38 > ok 39 > ok 40 > ok 41 > ok 42 > ok 43 > ok 44 > ok 45 > ok 46 > ok 47 # <foo>&lt;&#162;&gt;</foo> > ok > Failed Test Stat Wstat Total Fail Failed List of Failed > ----------------------------------------------------------------------
--------- Show quoted text
> t\DOM.t ?? ?? % ?? > Failed 1/2 test scripts, 50.00% okay. 0/47 subtests failed, 100.00% > okay. > NMAKE : fatal error U1077: 'C:\Programme\Perl\bin\perl.exe' : return > code '0xff' > Stop.
Download (untitled) / with headers
text/plain 3.2k
[guest - Tue Aug 12 13:05:51 2003]: Show quoted text
> Murat, > > I'm sorry that you are having trouble. I don't think your analysis
is Show quoted text
> quite right, although I'm not sure as I've never installed
Yeah, after reading the Makefile.PL is saw things i wasn't expecting. Show quoted text
> XML::Generator on windows using nmake. However, DOM.pm should be > copied into blib/lib/XML/Generator/DOM.pm automatically before the > tests are run, by the 'pm_to_blib' make target. What do you get if > you > just run: > > perl -Mblib t/DOM.t > > ?
V:\.cpan\build\XML-Generator-0.93>perl -Mblib t/DOM.t V:\.cpan\build\XML-Generator-0.93> I am really confused ! After visiting the cpan.testers page where it passed 5.6.1 on win32 i updated to ExtUtils::MakeMaker 6.15 just to be sure. But nothing changed. Sorry but i have no further ideas. Do you ? I append my perl -V just to be sure. BTW i use randy korbes prebuild perl5.8.0+apache2 dist. Stays tuned, Murat V:\.cpan\build\XML-Generator-0.93>perl -V Summary of my perl5 (revision 5 version 8 subversion 0) configuration: Platform: osname=MSWin32, osvers=4.0, archname=MSWin32-x86-multi-thread uname='' config_args='undef' hint=recommended, useposix=true, d_sigaction=undef usethreads=undef 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='cl', ccflags ='-nologo -Gf -W3 -MD -DNDEBUG -O1 -DWIN32 - D_CONSOLE -DNO_STRICT -DHAVE_DES_FCRYPT -DPERL_IMPLICIT_CONTEXT - DPERL_IMPLICIT_SYS -DUSE_PERLIO -DPERL_MSVCRT_READF IX', optimize='-MD -DNDEBUG -O1', cppflags='-DWIN32' ccversion='', gccversion='', gccosandvers='' intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=1234 d_longlong=undef, longlongsize=8, d_longdbl=define, longdblsize=10 ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='__int64', lseeksize=8 alignbytes=8, prototype=define Linker and Libraries: ld='link', ldflags ='-nologo -nodefaultlib - libpath:"C:\Programme\Perl\lib\CORE" -machine:x86' libpth=\lib libs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib winmm. lib version.lib odbc32.lib odbccp32.lib msvcrt.lib perllibs= oldnames.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib netapi32.lib uuid.lib wsock32.lib mpr.lib wi nmm.lib version.lib odbc32.lib odbccp32.lib msvcrt.lib libc=msvcrt.lib, so=dll, useshrplib=yes, libperl=perl58.lib gnulibc_version='undef' Dynamic Linking: dlsrc=dl_win32.xs, dlext=dll, d_dlsymun=undef, ccdlflags=' ' cccdlflags=' ', lddlflags='-dll -nologo -nodefaultlib - libpath:"C:\Programme\Perl\lib\CORE" -machine:x86' Characteristics of this binary (from libperl): Compile-time options: MULTIPLICITY USE_ITHREADS USE_LARGE_FILES PERL_IMPLICIT_CONTEXT PERL_IMPLICIT_SYS Locally applied patches: ActivePerl Build 806 Built under MSWin32 Compiled at Apr 24 2003 20:37:33 @INC: C:/Programme/Perl/lib C:/Programme/Perl/site/lib .
From: bholzman [...] earthlink.net
Download (untitled) / with headers
text/plain 811b
Show quoted text
> V:\.cpan\build\XML-Generator-0.93>perl -Mblib t/DOM.t > > V:\.cpan\build\XML-Generator-0.93>
Hmm. Well, at least that is consistent with the test failure. Can you run the same thing under the debugger and see where it's exiting: perl -Mblib -d t/DOM.t ? I should point out that if you don't need XML::Generator::DOM, you can just copy Generator.pm to the right place in your site_perl library directory, but I suspect you already know that. Show quoted text
> I am really confused ! After visiting the cpan.testers page where it > passed 5.6.1 on win32 i updated to ExtUtils::MakeMaker 6.15 just to be > sure. But nothing changed. > > Sorry but i have no further ideas. Do you ? I append my perl -V just > to be sure. BTW i use randy korbes prebuild perl5.8.0+apache2 dist. > > Stays tuned, > Murat > >
From: muenalan [...] cpan.org
Download (untitled) / with headers
text/plain 1.1k
[guest - Tue Aug 12 13:24:07 2003]: Show quoted text
> > V:\.cpan\build\XML-Generator-0.93>perl -Mblib t/DOM.t > > > > V:\.cpan\build\XML-Generator-0.93>
> > Hmm. Well, at least that is consistent with the test failure. Can > you > run the same thing under the debugger and see where it's exiting: > > perl -Mblib -d t/DOM.t > > ?
The debugger exited during start. That pointed me to something with a BEGIN block. I traced it down to a simple leftover "exit" in DOM.t BEGIN { print "1..0 # Skipped: XML::DOM not installed\n" unless eval "use XML::DOM; 1"; exit; } so i removed "exit" and it worked until test 28 of DOM.t failed. But this doesnt look like anything platform specific (i added some diagnostic output): <code> print "ok 27\n"; $xml = $x->foo(['bar'], {'baz:foo' => 'qux', 'fob' => 'gux'}); print '#', join( "\n#", $xml->toString, '<bar:foo baz:foo="qux" bar:fob="gux"/>' ), "\n"; $xml->toString eq '<bar:foo baz:foo="qux" bar:fob="gux"/>' or print "not "; print "ok 28\n"; </code> <output> ok 27 #<bar:foo bar:fob="gux" baz:foo="qux"/> #<bar:foo baz:foo="qux" bar:fob="gux"/> not ok 28 </output> Is that a simple typo, or some precedence problem with the ns ? Greetings, Murat
Subject: [PATCH]
From: muenalan [...] cpan.org
Download (untitled) / with headers
text/plain 420b
Ok, test 28 was a simple "order" problem. And the leftover "exit". patch is appended. Good night from germany, Murat 12c12 < exit; --- Show quoted text
> # exit;
133c133,135 < $xml->toString eq '<bar:foo baz:foo="qux" bar:fob="gux"/>' or print "not "; --- Show quoted text
> print '#', join( "\n#", $xml->toString, '<bar:foo baz:foo="qux"
bar:fob="gux"/>' ), "\n"; Show quoted text
> > $xml->toString eq '<bar:foo bar:fob="gux" baz:foo="qux"/>' or
print "not ";
From: "Benjamin Holzman" <bholzman [...] earthlink.net>
To: <bug-XML-Generator [...] rt.cpan.org>
Subject: Re: [cpan #3220] [perl5.8.0/Win32] FAILED TESTS
Date: Wed, 13 Aug 2003 10:00:57 -0400
RT-Send-Cc:
Download (untitled) / with headers
text/plain 461b
Show quoted text
> BEGIN { > print "1..0 # Skipped: XML::DOM not installed\n" unless eval "use > XML::DOM; 1"; > exit; > }
Oops. I guess none of the cpan-testers systems had XML::DOM installed! Show quoted text
> $xml = $x->foo(['bar'], {'baz:foo' => 'qux', 'fob' => 'gux'}); > > Is that a simple typo, or some precedence problem with the ns ?
Stupidity. One cannot count on the order of hashes. I will just change the test to check for both possibilities. Thanks, Benjamin Holzman


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.