Replace system by print in strictures/parsing regression test
Rafael Garcia-Suarez [Fri, 4 Sep 2009 10:36:27 +0000 (12:36 +0200)]
(so we're not annoyed by shell messages)

t/lib/strict/subs

index 25c6543..4c88021 100644 (file)
@@ -423,9 +423,12 @@ EXPECT
 
 ########
 use strict 'subs';
-sub sayfoo { print "foo:@_\n" }
-system sayfoo "bar";
-system sayfoo . "bar";
+sub sayfoo { print "foo:@_\n" ; "ret\n" }
+print sayfoo "bar";
+print sayfoo . "bar\n";
 EXPECT
 foo:bar
+ret
 foo:
+ret
+bar