From: Rafael Garcia-Suarez <rgarciasuarez@gmail.com>
Date: Mon, 27 Jul 2009 13:21:20 +0000 (+0200)
Subject: Make test pass with miniperl
X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c1d4704a2597260c95ce909e7891ef98aab05e8e;p=p5sagit%2Fp5-mst-13.2.git

Make test pass with miniperl

(no need to call overload::StrVal on objects that don't overload "")
---

diff --git a/t/op/filetest.t b/t/op/filetest.t
index c46bdc1..0d4f7c7 100644
--- a/t/op/filetest.t
+++ b/t/op/filetest.t
@@ -101,8 +101,9 @@ my $over;
     package OverFtest;
 
     use overload 
+	fallback => 1,
         -X => sub { 
-            $over = [overload::StrVal($_[0]), $_[1]];
+            $over = [qq($_[0]), $_[1]];
             "-$_[1]"; 
         };
 }
@@ -131,11 +132,11 @@ my $over;
 }
 
 my $ft = bless [], "OverFtest";
-my $ftstr = overload::StrVal($ft);
+my $ftstr = qq($ft);
 my $str = bless [], "OverString";
 my $both = bless [], "OverBoth";
 my $neither = bless [], "OverNeither";
-my $nstr = overload::StrVal($neither);
+my $nstr = qq($neither);
 
 open my $gv, "<", "TEST";
 bless $gv, "OverString";