forked from pool/perl-Class-Load
- remove outdated patch perl-Class-Load-old_test_more.patch
OBS-URL: https://build.opensuse.org/package/show/devel:languages:perl/perl-Class-Load?expand=0&rev=17
This commit is contained in:
committed by
Git OBS Bridge
parent
112d492ba9
commit
c4b3b69ec4
@@ -1,326 +0,0 @@
|
||||
diff -urN t.orig/000-load.t t/000-load.t
|
||||
--- t.orig/000-load.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/000-load.t 2012-03-01 01:14:05.581239000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
use lib 't/lib';
|
||||
|
||||
@@ -13,4 +13,4 @@
|
||||
. Module::Implementation::implementation_for('Class::Load')
|
||||
. ' implementation' );
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/001-is-class-loaded.t t/001-is-class-loaded.t
|
||||
--- t.orig/001-is-class-loaded.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/001-is-class-loaded.t 2012-03-01 01:14:05.609240000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
use version;
|
||||
|
||||
@@ -106,4 +106,4 @@
|
||||
ok(is_class_loaded('Class::Load::VersionCheck', {-version => 41}),
|
||||
'Class::Load::VersionCheck has been loaded and the version check passed');
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/002-try-load-class.t t/002-try-load-class.t
|
||||
--- t.orig/002-try-load-class.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/002-try-load-class.t 2012-03-01 01:14:05.554239000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
|
||||
@@ -36,4 +36,4 @@
|
||||
ok(try_load_class('Class::Load::VersionCheck2', { -version => 41 }));
|
||||
ok(!try_load_class('Class::Load::VersionCheck2', { -version => 43 }));
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/003-load-class.t t/003-load-class.t
|
||||
--- t.orig/003-load-class.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/003-load-class.t 2012-03-01 01:14:05.605241000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
use Test::Fatal;
|
||||
@@ -53,4 +53,4 @@
|
||||
load_class('__PACKAGE__')
|
||||
}, qr/__PACKAGE__\.pm.*\@INC/, 'errors sanely on __PACKAGE__.pm' );
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/004-load-double.t t/004-load-double.t
|
||||
--- t.orig/004-load-double.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/004-load-double.t 2012-03-01 01:14:05.568241000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
use Test::Fatal;
|
||||
@@ -25,4 +25,4 @@
|
||||
load_class('Class::Load::SyntaxError');
|
||||
}, qr/syntax error/ );
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/005-load-optional.t t/005-load-optional.t
|
||||
--- t.orig/005-load-optional.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/005-load-optional.t 2012-03-01 01:14:05.557248000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load qw( :all );
|
||||
@@ -40,4 +40,4 @@
|
||||
is( load_optional_class('Class::Load::VersionCheck', {-version => 41}), 1,
|
||||
'VersionCheck (with ok version) => 1');
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/006-returned-error.t t/006-returned-error.t
|
||||
--- t.orig/006-returned-error.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/006-returned-error.t 2012-03-01 01:14:05.565241000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load ':all';
|
||||
|
||||
@@ -46,4 +46,4 @@
|
||||
is($@, "foo");
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/007-first-existing.t t/007-first-existing.t
|
||||
--- t.orig/007-first-existing.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/007-first-existing.t 2012-03-01 01:14:05.542239000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load 'load_first_existing_class';
|
||||
|
||||
@@ -121,4 +121,4 @@
|
||||
'load_first_existing_class returns loadable class when a class passes the version check'
|
||||
);
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/008-gvstash-bug.t t/008-gvstash-bug.t
|
||||
--- t.orig/008-gvstash-bug.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/008-gvstash-bug.t 2012-03-01 01:14:05.536246000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load 'load_class';
|
||||
|
||||
@@ -21,4 +21,4 @@
|
||||
}, undef,
|
||||
'Actually loaded Class::Load::Stash - we were not fooled by mention of this stash in Class::Load::Stash::Sub' );
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/009-invalid-module-name.t t/009-invalid-module-name.t
|
||||
--- t.orig/009-invalid-module-name.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/009-invalid-module-name.t 2012-03-01 01:14:05.586239000 +0100
|
||||
@@ -2,7 +2,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
use Test::Fatal;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use lib 't/lib';
|
||||
use Test::Class::Load 'load_class';
|
||||
|
||||
@@ -23,4 +23,4 @@
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/010-isa-false-positive.t t/010-isa-false-positive.t
|
||||
--- t.orig/010-isa-false-positive.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/010-isa-false-positive.t 2012-03-01 01:14:05.601248000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
use lib 't/lib';
|
||||
@@ -65,4 +65,4 @@
|
||||
'Class with a syntax error causes an error (second attempt)'
|
||||
);
|
||||
|
||||
-done_testing;
|
||||
+#done_testing;
|
||||
diff -urN t.orig/011-without-xs.t t/011-without-xs.t
|
||||
--- t.orig/011-without-xs.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/011-without-xs.t 2012-03-01 01:14:05.548250000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
use Test::Requires {
|
||||
@@ -21,4 +21,4 @@
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing();
|
||||
+#done_testing();
|
||||
diff -urN t.orig/012-without-implementation.t t/012-without-implementation.t
|
||||
--- t.orig/012-without-implementation.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/012-without-implementation.t 2012-03-01 01:14:05.490240000 +0100
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/usr/bin/env perl
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More 0.88;
|
||||
+use Test::More qw(no_plan);
|
||||
use Test::Fatal;
|
||||
|
||||
use Test::Requires {
|
||||
@@ -18,4 +18,4 @@
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing();
|
||||
+#done_testing();
|
||||
diff -urN t.orig/release-cpan-changes.t t/release-cpan-changes.t
|
||||
--- t.orig/release-cpan-changes.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-cpan-changes.t 2012-03-01 01:14:05.598239000 +0100
|
||||
@@ -8,8 +8,8 @@
|
||||
}
|
||||
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
eval 'use Test::CPAN::Changes';
|
||||
plan skip_all => 'Test::CPAN::Changes required for this test' if $@;
|
||||
changes_ok();
|
||||
-done_testing();
|
||||
+#done_testing();
|
||||
diff -urN t.orig/release-eol.t t/release-eol.t
|
||||
--- t.orig/release-eol.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-eol.t 2012-03-01 01:14:05.571251000 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
eval 'use Test::EOL';
|
||||
plan skip_all => 'Test::EOL required' if $@;
|
||||
diff -urN t.orig/release-no-tabs.t t/release-no-tabs.t
|
||||
--- t.orig/release-no-tabs.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-no-tabs.t 2012-03-01 01:14:05.545243000 +0100
|
||||
@@ -8,7 +8,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
eval 'use Test::NoTabs';
|
||||
plan skip_all => 'Test::NoTabs required' if $@;
|
||||
diff -urN t.orig/release-pod-coverage.t t/release-pod-coverage.t
|
||||
--- t.orig/release-pod-coverage.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-pod-coverage.t 2012-03-01 01:14:05.593241000 +0100
|
||||
@@ -11,7 +11,7 @@
|
||||
use strict;
|
||||
use warnings;
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
use Test::Requires {
|
||||
'Test::Pod::Coverage' => '1.04',
|
||||
@@ -45,4 +45,4 @@
|
||||
);
|
||||
}
|
||||
|
||||
-done_testing();
|
||||
+#done_testing();
|
||||
diff -urN t.orig/release-pod-linkcheck.t t/release-pod-linkcheck.t
|
||||
--- t.orig/release-pod-linkcheck.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-pod-linkcheck.t 2012-03-01 01:14:05.560248000 +0100
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
foreach my $env_skip ( qw(
|
||||
SKIP_POD_LINKCHECK
|
||||
diff -urN t.orig/release-pod-no404s.t t/release-pod-no404s.t
|
||||
--- t.orig/release-pod-no404s.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-pod-no404s.t 2012-03-01 01:14:05.590240000 +0100
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
use strict;
|
||||
use warnings;
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
foreach my $env_skip ( qw(
|
||||
SKIP_POD_NO404S
|
||||
diff -urN t.orig/release-pod-syntax.t t/release-pod-syntax.t
|
||||
--- t.orig/release-pod-syntax.t 2012-02-18 21:51:26.000000000 +0100
|
||||
+++ t/release-pod-syntax.t 2012-03-01 01:14:05.577245000 +0100
|
||||
@@ -7,7 +7,7 @@
|
||||
}
|
||||
}
|
||||
|
||||
-use Test::More;
|
||||
+use Test::More qw(no_plan);
|
||||
|
||||
eval "use Test::Pod 1.41";
|
||||
plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
|
||||
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 10 14:44:31 UTC 2013 - coolo@suse.com
|
||||
|
||||
- remove outdated patch perl-Class-Load-old_test_more.patch
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Jun 3 15:33:02 UTC 2013 - coolo@suse.com
|
||||
|
||||
|
||||
@@ -25,7 +25,6 @@ License: Artistic-1.0 or GPL-1.0+
|
||||
Group: Development/Libraries/Perl
|
||||
Url: http://search.cpan.org/dist/Class-Load/
|
||||
Source: http://www.cpan.org/authors/id/D/DR/DROLSKY/%{cpan_name}-%{version}.tar.gz
|
||||
Patch0: perl-Class-Load-old_test_more.patch
|
||||
BuildArch: noarch
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildRequires: perl
|
||||
@@ -68,10 +67,6 @@ For that, we provide 'is_class_loaded 'Class::Name''.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{cpan_name}-%{version}
|
||||
# MANUAL
|
||||
%if 0%{?suse_version} <= 1110
|
||||
%patch0
|
||||
%endif
|
||||
|
||||
%build
|
||||
%{__perl} Makefile.PL INSTALLDIRS=vendor
|
||||
|
||||
Reference in New Issue
Block a user