r39246 - in /branches/upstream/libtest-simple-perl/current: ./ lib/Test/ lib/Test/Builder/ lib/Test/Builder/IO/ t/ t/lib/Test/Simple/sample_tests/

jawnsy-guest at users.alioth.debian.org jawnsy-guest at users.alioth.debian.org
Fri Jul 3 14:39:22 UTC 2009


Author: jawnsy-guest
Date: Fri Jul  3 14:39:16 2009
New Revision: 39246

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=39246
Log:
[svn-upgrade] Integrating new upstream version, libtest-simple-perl (0.90)

Modified:
    branches/upstream/libtest-simple-perl/current/Changes
    branches/upstream/libtest-simple-perl/current/META.yml
    branches/upstream/libtest-simple-perl/current/Makefile.PL
    branches/upstream/libtest-simple-perl/current/SIGNATURE
    branches/upstream/libtest-simple-perl/current/lib/Test/Builder.pm
    branches/upstream/libtest-simple-perl/current/lib/Test/Builder/IO/Scalar.pm
    branches/upstream/libtest-simple-perl/current/lib/Test/Builder/Module.pm
    branches/upstream/libtest-simple-perl/current/lib/Test/More.pm
    branches/upstream/libtest-simple-perl/current/lib/Test/Simple.pm
    branches/upstream/libtest-simple-perl/current/t/cmp_ok.t
    branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death.plx
    branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death_with_handler.plx
    branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/last_minute_death.plx

Modified: branches/upstream/libtest-simple-perl/current/Changes
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/Changes?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/Changes (original)
+++ branches/upstream/libtest-simple-perl/current/Changes Fri Jul  3 14:39:16 2009
@@ -1,3 +1,21 @@
+0.90  Thu Jul  2 13:18:25 PDT 2009
+    Docs
+    * Finally added a note about the "Wide character in print" warning and
+      how to work around it.
+    * Note the IO::Stringy license in our copy of it.
+      [test-more.googlecode.com 47]
+
+    Test Fixes
+    * Small fixes for integration with the Perl core
+      [bleadperl eaa0815147e13cd4ab5b3d6ca8f26544a9f0c3b4]
+    * exit code tests could be effected by errno when PERLIO=stdio
+      [bleadperl c76230386fc5e6fba9fdbeab473abbf4f4adcbe3]
+
+    Other
+    * This is a stable release for 5.10.1.  It does not include
+      the subtest() work in 0.89_01.
+
+
 0.88  Sat May 30 12:31:24 PDT 2009
     Turing 0.87_03 into a stable release.
 

Modified: branches/upstream/libtest-simple-perl/current/META.yml
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/META.yml?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/META.yml (original)
+++ branches/upstream/libtest-simple-perl/current/META.yml Fri Jul  3 14:39:16 2009
@@ -1,6 +1,6 @@
 --- #YAML:1.0
 name:               Test-Simple
-version:            0.88
+version:            0.90
 abstract:           Basic utilities for writing tests.
 author:
     - Michael G Schwern <schwern at pobox.com>
@@ -22,7 +22,7 @@
     directory:
         - t
         - inc
-generated_by:       ExtUtils::MakeMaker version 6.51_04
+generated_by:       ExtUtils::MakeMaker version 6.53_02
 meta-spec:
     url:      http://module-build.sourceforge.net/META-spec-v1.4.html
     version:  1.4

Modified: branches/upstream/libtest-simple-perl/current/Makefile.PL
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/Makefile.PL?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/Makefile.PL (original)
+++ branches/upstream/libtest-simple-perl/current/Makefile.PL Fri Jul  3 14:39:16 2009
@@ -91,6 +91,36 @@
 {
     package MY;
 
+
+    # Test with multiple versions of perl
+    sub dist_test {
+        my $self = shift;
+
+        my $make = $self->SUPER::dist_test(@_);
+        return $make unless $ENV{AUTHOR_TESTING} and $ENV{AUTHOR_TESTING} eq 'MSCHWERN';
+
+        # Strip off all the whitespace at the end, we'll put our own in.
+        $make =~ s{\s+\z}{\n};
+
+        my @perls = qw(
+            perl5.8.9
+            perl5.8.8
+            perl5.6.2
+            perl5.6.1
+        );
+
+        for my $perl (@perls) {
+            $make .= sprintf <<'END', $perl;
+	cd $(DISTVNAME) && $(MAKE) clean && %s Makefile.PL && $(MAKE) test $(PASTHRU)
+END
+        }
+
+        $make .= "\n";
+
+        return $make;
+    }
+
+
     sub postamble {
         return <<'MAKE';
 

Modified: branches/upstream/libtest-simple-perl/current/SIGNATURE
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/SIGNATURE?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/SIGNATURE (original)
+++ branches/upstream/libtest-simple-perl/current/SIGNATURE Fri Jul  3 14:39:16 2009
@@ -16,20 +16,20 @@
 
 SHA1 18d88718e58ff5e620e7faa1a59799bc56c80a19 .perlcriticrc
 SHA1 f723872651f0cd52a4aca957af3536f931667340 .perltidyrc
-SHA1 fea335a475b94af2d9f1c679d7095e417b7db514 Changes
+SHA1 b49253f374c4833b374d1eeddfb4e4d420c78efe Changes
 SHA1 cbf9ee5335cd156f5f4ed34943b05d146c4f9b5b MANIFEST
 SHA1 553943846ee39d1f8a38b493fbf166536d3dbf02 MANIFEST.SKIP
-SHA1 d64b0473513f9c09ecec5c1e80a3c65edd0ecae4 META.yml
-SHA1 f83aecb5fd071f565914e294f85be42cf44aa305 Makefile.PL
+SHA1 b81ad9b0f37f628eec58b1a3fe0c7d96172b50fe META.yml
+SHA1 96d85715c8e82471c2904e6a0ba861ed8b149f8d Makefile.PL
 SHA1 2588ca185fcf4403281a880f4b9465caa9171c1b README
 SHA1 4d39888e6742ff5dc92bbf53e8915415607acfa8 TODO
-SHA1 e88cce9a14a0b429df058d6ee99cf46a962cbcda lib/Test/Builder.pm
-SHA1 6bc468cfb7d369fe7879fe11e6392b9bab2e58c2 lib/Test/Builder/IO/Scalar.pm
-SHA1 4056c5e3a85ba124f27314867ba7ab876a30bb33 lib/Test/Builder/Module.pm
+SHA1 64bad41cc20428efcd5f842faa6cc49e2e979753 lib/Test/Builder.pm
+SHA1 fbf99e4ff748177d23fe57609c2e8d040591a87a lib/Test/Builder/IO/Scalar.pm
+SHA1 b244933b961e18496ab0b6a90575453f049fb365 lib/Test/Builder/Module.pm
 SHA1 260f4acf7d71eea20dffa4dc2f01692d61642f79 lib/Test/Builder/Tester.pm
 SHA1 a14b53e986060cd1771ed0a1d096037f40e0f9c0 lib/Test/Builder/Tester/Color.pm
-SHA1 fad6a8db849ad0f82f070784597404ce6e3018d7 lib/Test/More.pm
-SHA1 0567b82682647d9b4c3e7cde4fa791bcfee1abf1 lib/Test/Simple.pm
+SHA1 f05eb6d7dcc5710fa8008f895f38e04b989a196b lib/Test/More.pm
+SHA1 85920f2d619df865dd08aec85e90b1b3c7e28679 lib/Test/Simple.pm
 SHA1 6d44791354100fb372b081c6e32c0aabb4fdc255 lib/Test/Tutorial.pod
 SHA1 deae108daf1a5899905d681130afc3c7aab7a1b9 t/00test_harness_check.t
 SHA1 4508d8237a1086902c6b238a3c30f67095fbc6c3 t/BEGIN_require_ok.t
@@ -73,7 +73,7 @@
 SHA1 d140d2e0b4b5c2efbc8a1d20298b8bf21cb1dd0f t/buffer.t
 SHA1 d43a7ca8594ade9d293d248a74e10d879c022d5e t/c_flag.t
 SHA1 d06655caf553f4d18bec5de47ff1fe1a147da9c9 t/circular_data.t
-SHA1 8db877b3b6391b1a5011812fcd3d8fe2826f2459 t/cmp_ok.t
+SHA1 d53a4acb2df0956be2f285ddbd22f3665bb710d1 t/cmp_ok.t
 SHA1 bb1dd4528bf070f17f1a88023270ce8189025b93 t/diag.t
 SHA1 5b2fe545e54cff54f5166dcd290042f288178377 t/died.t
 SHA1 65e3dcbe538d908c72e4bec96306ba7a3f6b841f t/dont_overwrite_die_handler.t
@@ -100,13 +100,13 @@
 SHA1 d94c421d7e0c2018933bc85eb9eb77b941b34f08 t/lib/SigDie.pm
 SHA1 443ab6929d939fa2612972c0bd90c1abab1e6197 t/lib/Test/Builder/NoOutput.pm
 SHA1 f684fff62c4fc8d0408db62b0ce8f9f0bf1fa028 t/lib/Test/Simple/Catch.pm
-SHA1 94bb4bb25cfe2738dfdc4c7da6823fb58250ed10 t/lib/Test/Simple/sample_tests/death.plx
+SHA1 91aec9fdc25078def12ca83c24c83498c85e63b3 t/lib/Test/Simple/sample_tests/death.plx
 SHA1 549c1c54634ef5bd571063020a3f7de174336666 t/lib/Test/Simple/sample_tests/death_in_eval.plx
-SHA1 eb8588f466c887097bdc349fe62d2ad2806ffef8 t/lib/Test/Simple/sample_tests/death_with_handler.plx
+SHA1 b96a296e3e558b5e1f7c26ebaaf26079abe89322 t/lib/Test/Simple/sample_tests/death_with_handler.plx
 SHA1 0fd68054c332c60cba7604c7d287160becbcf55e t/lib/Test/Simple/sample_tests/exit.plx
 SHA1 903f1435e64b90b6e329d29bede6065798d8c9a4 t/lib/Test/Simple/sample_tests/extras.plx
 SHA1 0f9b45b394534597c7dada5b106ea2c0aab23e0c t/lib/Test/Simple/sample_tests/five_fail.plx
-SHA1 2c4eb127a1a83526cabaa6563393491e30b2374c t/lib/Test/Simple/sample_tests/last_minute_death.plx
+SHA1 4345d33d32a50edbc495ea3c87687c721ec0c19e t/lib/Test/Simple/sample_tests/last_minute_death.plx
 SHA1 d39a078aeb36026521c10f9db8638ec6a8264516 t/lib/Test/Simple/sample_tests/one_fail.plx
 SHA1 bb56732e2c05a4060809261fb703580560076670 t/lib/Test/Simple/sample_tests/pre_plan_death.plx
 SHA1 dd45a6273288a07866e18ea380c777678bdf944b t/lib/Test/Simple/sample_tests/require.plx
@@ -146,7 +146,7 @@
 -----BEGIN PGP SIGNATURE-----
 Version: GnuPG/MacGPG2 v2.0.11 (Darwin)
 
-iEYEARECAAYFAkohickACgkQWMohlhD1QycVZwCfSvJyoDhJhgiECG3Hg9zqG/e6
-Z7MAoIt1DmmWnjCGrYQw8PQaPalEOePp
-=VeDe
+iEYEARECAAYFAkpNHxMACgkQWMohlhD1QyeX3wCgi8I0zFbCK9uc30StLTpBPVmm
+7BUAn3LRRNgsk54K2QCXWYyLdirI8tjj
+=RnKM
 -----END PGP SIGNATURE-----

Modified: branches/upstream/libtest-simple-perl/current/lib/Test/Builder.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/lib/Test/Builder.pm?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/lib/Test/Builder.pm (original)
+++ branches/upstream/libtest-simple-perl/current/lib/Test/Builder.pm Fri Jul  3 14:39:16 2009
@@ -4,7 +4,7 @@
 use strict;
 use warnings;
 
-our $VERSION = '0.88';
+our $VERSION = '0.90';
 $VERSION = eval $VERSION;    ## no critic (BuiltinFunctions::ProhibitStringyEval)
 
 BEGIN {

Modified: branches/upstream/libtest-simple-perl/current/lib/Test/Builder/IO/Scalar.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/lib/Test/Builder/IO/Scalar.pm?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/lib/Test/Builder/IO/Scalar.pm (original)
+++ branches/upstream/libtest-simple-perl/current/lib/Test/Builder/IO/Scalar.pm Fri Jul  3 14:39:16 2009
@@ -8,7 +8,22 @@
 =head1 DESCRIPTION
 
 This is a copy of IO::Scalar which ships with Test::Builder to
-support scalar references as filehandles on Perl 5.6.
+support scalar references as filehandles on Perl 5.6.  Newer
+versions of Perl simply use C<<open()>>'s built in support.
+
+Test::Builder can not have dependencies on other modules without
+careful consideration, so its simply been copied into the distribution.
+
+=head1 COPYRIGHT and LICENSE
+
+This file came from the "IO-stringy" Perl5 toolkit.
+
+Copyright (c) 1996 by Eryq.  All rights reserved.
+Copyright (c) 1999,2001 by ZeeGee Software Inc.  All rights reserved.
+
+This program is free software; you can redistribute it and/or
+modify it under the same terms as Perl itself.
+
 
 =cut
 

Modified: branches/upstream/libtest-simple-perl/current/lib/Test/Builder/Module.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/lib/Test/Builder/Module.pm?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/lib/Test/Builder/Module.pm (original)
+++ branches/upstream/libtest-simple-perl/current/lib/Test/Builder/Module.pm Fri Jul  3 14:39:16 2009
@@ -7,7 +7,7 @@
 require Exporter;
 our @ISA = qw(Exporter);
 
-our $VERSION = '0.88';
+our $VERSION = '0.90';
 $VERSION = eval $VERSION;      ## no critic (BuiltinFunctions::ProhibitStringyEval)
 
 # 5.004's Exporter doesn't have export_to_level.

Modified: branches/upstream/libtest-simple-perl/current/lib/Test/More.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/lib/Test/More.pm?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/lib/Test/More.pm (original)
+++ branches/upstream/libtest-simple-perl/current/lib/Test/More.pm Fri Jul  3 14:39:16 2009
@@ -17,7 +17,7 @@
     return warn @_, " at $file line $line\n";
 }
 
-our $VERSION = '0.88';
+our $VERSION = '0.90';
 $VERSION = eval $VERSION;    ## no critic (BuiltinFunctions::ProhibitStringyEval)
 
 use Test::Builder::Module;
@@ -1601,6 +1601,24 @@
 Test::More works with Perls as old as 5.6.0.
 
 
+=item utf8 / "Wide character in print"
+
+If you use utf8 or other non-ASCII characters with Test::More you
+might get a "Wide character in print" warning.  Using C<binmode
+STDOUT, ":utf8"> will not fix it.  Test::Builder (which powers
+Test::More) duplicates STDOUT and STDERR.  So any changes to them,
+including changing their output disciplines, will not be seem by
+Test::More.
+
+The work around is to change the filehandles used by Test::Builder
+directly.
+
+    my $builder = Test::More->builder;
+    binmode $builder->output,         ":utf8";
+    binmode $builder->failure_output, ":utf8";
+    binmode $builder->todo_output,    ":utf8";
+
+
 =item Overloaded objects
 
 String overloaded objects are compared B<as strings> (or in cmp_ok()'s

Modified: branches/upstream/libtest-simple-perl/current/lib/Test/Simple.pm
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/lib/Test/Simple.pm?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/lib/Test/Simple.pm (original)
+++ branches/upstream/libtest-simple-perl/current/lib/Test/Simple.pm Fri Jul  3 14:39:16 2009
@@ -4,7 +4,7 @@
 
 use strict;
 
-our $VERSION = '0.88';
+our $VERSION = '0.90';
 $VERSION = eval $VERSION;    ## no critic (BuiltinFunctions::ProhibitStringyEval)
 
 use Test::Builder::Module;

Modified: branches/upstream/libtest-simple-perl/current/t/cmp_ok.t
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/t/cmp_ok.t?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/t/cmp_ok.t (original)
+++ branches/upstream/libtest-simple-perl/current/t/cmp_ok.t Fri Jul  3 14:39:16 2009
@@ -3,7 +3,7 @@
 BEGIN {
     if( $ENV{PERL_CORE} ) {
         chdir 't';
-        @INC = ('../lib', 'lib');
+        @INC = ('../lib', 'lib', '../lib/Test/Simple/t/lib');
     }
     else {
         unshift @INC, 't/lib';

Modified: branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death.plx
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death.plx?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death.plx (original)
+++ branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death.plx Fri Jul  3 14:39:16 2009
@@ -12,4 +12,5 @@
 ok(1);
 ok(1);
 ok(1);
+$! = 0;
 die "This is a test";

Modified: branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death_with_handler.plx
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death_with_handler.plx?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death_with_handler.plx (original)
+++ branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/death_with_handler.plx Fri Jul  3 14:39:16 2009
@@ -15,4 +15,6 @@
 
 ok(1);
 ok(1);
+
+$! = 0;
 die "This is a test";

Modified: branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/last_minute_death.plx
URL: http://svn.debian.org/wsvn/pkg-perl/branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/last_minute_death.plx?rev=39246&op=diff
==============================================================================
--- branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/last_minute_death.plx (original)
+++ branches/upstream/libtest-simple-perl/current/t/lib/Test/Simple/sample_tests/last_minute_death.plx Fri Jul  3 14:39:16 2009
@@ -15,4 +15,5 @@
 ok(1);
 ok(1);
 
+$! = 0;
 die "This is a test";




More information about the Pkg-perl-cvs-commits mailing list