fix stupid test failure

This commit is contained in:
Tom Callaway 2007-10-17 05:07:02 +00:00
parent a58b50d64e
commit de823821bd
2 changed files with 20 additions and 1 deletions

View File

@ -0,0 +1,14 @@
diff -up XML-LibXML-1.62/t/03doc.t.BAD XML-LibXML-1.62/t/03doc.t
--- XML-LibXML-1.62/t/03doc.t.BAD 2007-09-03 11:54:24.000000000 -0400
+++ XML-LibXML-1.62/t/03doc.t 2007-09-03 11:54:41.000000000 -0400
@@ -206,8 +206,8 @@ use XML::LibXML::Common qw(:libxml);
ok($pi);
ok($pi->nodeType, XML_PI_NODE);
ok($pi->nodeName, "foo");
- ok( $pi->textContent, undef);
- ok( $pi->getData, undef);
+ ok( $pi->textContent, "");
+ ok( $pi->getData, "");
$pi->setData(q(bar&));
ok( $pi->getData, q(bar&));
ok($pi->textContent, q(bar&));

View File

@ -3,7 +3,7 @@
Summary: XML-LibXML Perl module
Name: perl-XML-LibXML
Version: 1.62001
Release: 2%{?dist}.2
Release: 2%{?dist}.3
License: GPL+ or Artistic
Group: Development/Libraries
URL: http://search.cpan.org/dist/XML-LibXML/
@ -14,6 +14,7 @@ Requires: %(perl -MConfig -le 'if (defined $Config{usethreads}) { print "perl(:W
Requires: %(perl -MConfig -le 'if (defined $Config{uselargefiles}) { print "perl(:WITH_LARGEFILES)" } else { print "perl(:WITHOUT_LARGEFILES)" }')
Requires: perl(:MODULE_COMPAT_%(perl -MConfig -e 'print $Config{version}'))
Source0: http://www.cpan.org/authors/id/P/PA/PAJAS/XML-LibXML-1.62001.tar.gz
Patch0: perl-XML-LibXML-1.62-undef-test-fix.patch
BuildRequires: perl-XML-LibXML-Common perl-XML-SAX perl-XML-NamespaceSupport
BuildRequires: libxml2-devel
BuildRequires: perl(ExtUtils::MakeMaker)
@ -29,6 +30,7 @@ Requires: perl-XML-LibXML-Common perl-XML-SAX perl-XML-NamespaceSupport
#contains a dir called XML-LibXML-1.62
%setup -q -n XML-LibXML-1.62
%patch0 -p1
%build
CFLAGS="$RPM_OPT_FLAGS" SKIP_SAX_INSTALL=1 perl Makefile.PL INSTALLDIRS=vendor
@ -71,6 +73,9 @@ fi
%{_mandir}/man3/*.3*
%changelog
* Wed Oct 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.62001-2.3
- fix stupid test
* Wed Oct 17 2007 Tom "spot" Callaway <tcallawa@redhat.com> - 1.62001-2.2
- add BR: perl(Test::More)