Re: [PATCH perl@11938] slash slashes in lib/CGI/Carp.pm
authorCraig A. Berry <craigberry@mac.com>
Sat, 8 Sep 2001 19:02:16 +0000 (14:02 -0500)
committerAbhijit Menon-Sen <ams@wiw.org>
Sun, 9 Sep 2001 02:54:21 +0000 (02:54 +0000)
Message-Id: <5.1.0.14.0.20010908185936.01aadcc0@mail.mac.com>

p4raw-id: //depot/perl@11955

lib/CGI/t/carp.t

index 8415816..e6a91d1 100644 (file)
@@ -164,7 +164,9 @@ my $fake_out = join '', <STDOUT>;
 untie *STDOUT;
 
 open(STDOUT, ">&REAL_STDOUT");
-is( $fake_out, "<!-- warning: There is a problem at $0 line 95. -->\n",
+my $fname = $0;
+$fname =~ tr/<>-/\253\273\255/; # _warn does this so we have to also
+is( $fake_out, "<!-- warning: There is a problem at $fname line 95. -->\n",
                         'warningsToBrowser() on' );
 
 is($CGI::Carp::EMIT_WARNINGS, 1, "Warnings turned off");