The module fails because 01.t expects some non-strict HTML. Here is a patch:

--- C:\Perl\cpan\build\Class-DBI-AsForm-2.42\t\01.t 9/6/2005  15:22:15
+++ C:\01.t 12/3/2006  02:33:12
@@ -41,53 +41,53 @@

Foo->has_a(bar => Bar);
-is(Foo->to_field("bar"), "<select name=\"bar\"><option
value=1>Hi</option></select>\n",
+is(Foo->to_field("bar"), "<select name=\"bar\"><option
value=\"1\">Hi</option></select>\n",
    "Select OK");

my $x = bless({id => 1, bar => Bar->retrieve_all(), baz => "Hello
there"}, "Foo");
-my %cgi = ( id => '<input name="id" type="text" value=1>
+my %cgi = ( id => '<input name="id" type="text" value="1" />
',
-    bar => '<select name="bar"><option selected value=1>Hi</option></select>
+    bar => '<select name="bar"><option selected value="1">Hi</option></select>
',
-            baz => '<input name="baz" type="text" value="Hello there">
+            baz => '<input name="baz" type="text" value="Hello there" />
'
          );

--

Set up gcc environment - 3.4.2 (mingw-special)
CPAN: Storable loaded ok
Going to read C:\Perl\cpan\Metadata
 Database was generated on Sat, 02 Dec 2006 10:25:05 GMT
Running install for module Class::DBI::AsForm
Running make for T/TM/TMTM/Class-DBI-AsForm-2.42.tar.gz
CPAN: Digest::MD5 loaded ok
CPAN: Compress::Zlib loaded ok
Checksum for 
C:\Perl\cpan\sources\authors\id\T\TM\TMTM\Class-DBI-AsForm-2.42.tar.gz
ok
Scanning cache C:\Perl/cpan/build for sizes
CPAN: Archive::Tar loaded ok
Class-DBI-AsForm-2.42/
Class-DBI-AsForm-2.42/t/
Class-DBI-AsForm-2.42/t/01.t
Class-DBI-AsForm-2.42/t/pod.t
Class-DBI-AsForm-2.42/t/pod-coverage.t
Class-DBI-AsForm-2.42/lib/
Class-DBI-AsForm-2.42/lib/Class/
Class-DBI-AsForm-2.42/lib/Class/DBI/
Class-DBI-AsForm-2.42/lib/Class/DBI/AsForm.pm
Class-DBI-AsForm-2.42/README
Class-DBI-AsForm-2.42/Changes
Class-DBI-AsForm-2.42/Makefile.PL
Class-DBI-AsForm-2.42/META.yml
Class-DBI-AsForm-2.42/MANIFEST

 CPAN.pm: Going to build T/TM/TMTM/Class-DBI-AsForm-2.42.tar.gz

Set up gcc environment - 3.4.2 (mingw-special)
Checking if your kit is complete...
Looks good
Writing Makefile for Class::DBI::AsForm

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

cp lib/Class/DBI/AsForm.pm blib\lib\Class\DBI\AsForm.pm
 nmake  -- OK
Running make test

Microsoft (R) Program Maintenance Utility   Version 1.50
Copyright (c) Microsoft Corp 1988-94. All rights reserved.

        C:\Perl\bin\perl.exe "-MExtUtils::Command::MM" "-e" "test_harness(0,
'blib\lib', 'blib\arch')" t/*.t
t/01..............
#   Failed test 'Select OK'
#   at t/01.t line 43.
#          got: '<select name="bar"><option value="1">Hi</option></select>
# '
#     expected: '<select name="bar"><option value=1>Hi</option></select>
# '

#   Failed test 'All correct as an object method'
#   at t/01.t line 54.
#     Structures begin differing at:
#          $got->{bar} = '<select name="bar"><option selected
value="1">Hi</option></select>
#     '
#     $expected->{bar} = '<select name="bar"><option selected
value=1>Hi</option></select>
#     '
# Looks like you failed 2 tests of 4.
dubious
        Test returned status 2 (wstat 512, 0x200)
DIED. FAILED tests 3-4
        Failed 2/4 tests, 50.00% okay
t/pod-coverage....skipped
       all skipped: Test::Pod::Coverage 1.00 required for testing POD coverage
t/pod.............skipped
       all skipped: Test::Pod 1.00 required for testing POD
Failed Test Stat Wstat Total Fail  Failed  List of Failed
-------------------------------------------------------------------------------
t/01.t         2   512     4    2  50.00%  3-4
2 tests skipped.
Failed 1/3 test scripts, 66.67% okay. 2/4 subtests failed, 50.00% okay.
NMAKE : fatal error U1077: 'C:\WINDOWS\system32\cmd.exe' : return code '0xff'
Stop.
 nmake test -- NOT OK
Running make install
 make test had returned bad status, won't install without force

Reply via email to