You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@perl.apache.org by "Philippe M. Chiasson" <go...@cpan.org> on 2002/09/09 09:20:55 UTC

[Patch] t/filter/api and Test.pm 1.21

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Another test failure due to the newest version of Test.pm.

Test.pm now uses printf to format the time the tests were run on, but
in the filter api test, STDOUT is filtered, and filters don't support PRINTF
yet ( as noted in  the todo/filters.txt )

Fixed it for now, just like UNTIE, by making PRINTF a defined noop.

Index: t/filter/TestFilter/api.pm
===================================================================
RCS file: /home/cvspublic/modperl-2.0/t/filter/TestFilter/api.pm,v
retrieving revision 1.6
diff -u -I'$Id' -I'$Revision' -r1.6 api.pm
- --- t/filter/TestFilter/api.pm	11 Apr 2002 11:08:43 -0000	1.6
+++ t/filter/TestFilter/api.pm	9 Sep 2002 07:20:27 -0000
@@ -17,6 +17,7 @@
 #XXX: else pp_untie complains:
 #untie attempted while %d inner references still exist
 sub Apache::Filter::UNTIE {}
+sub Apache::Filter::PRINTF {}
 
 sub handler {
     my $filter = shift;


- --------------------------------------------------------------------------------
Philippe M. Chiasson /gozer\@(cpan|ectoplasm)\.org/ 88C3A5A5 (122FF51B/C634E37B)
http://gozer.ectoplasm.org/    F9BF E0C2 480E 7680 1AE5 3631 CB32 A107 88C3 A5A5
Q: It is impossible to make anything foolproof because fools are so ingenious.
perl -e'$$=\${gozer};{$_=unpack(P7,pack(L,$$));/^JAm_pH\n$/&&print||$$++&&redo}'
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD8DBQE9fEvYyzKhB4jDpaURApOoAKCJ6xe1Ml/HW22eDfAOi6LWyGzspQCeKCt0
OyJ7tCkUeezcdHGXo1Xfno8=
=Umw0
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@perl.apache.org
For additional commands, e-mail: dev-help@perl.apache.org