X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=t%2Fop%2Fqrstack.t;h=47d190d0559d165d433bf2f99c7e5ce81d912c1d;hb=1db36481d13cc744ff50a6e79d19885d5071f098;hp=6483eba38f3db6b2d5c34391862b0f012769ab98;hpb=c8c13c2248f0124bc4c3d1625cab2bdb0be6c8da;p=p5sagit%2Fp5-mst-13.2.git diff --git a/t/op/qrstack.t b/t/op/qrstack.t index 6483eba..47d190d 100644 --- a/t/op/qrstack.t +++ b/t/op/qrstack.t @@ -1,21 +1,11 @@ -#!./perl +#!./perl -w -my $test = 1; -sub ok { - my($ok, $name) = @_; - - # You have to do it this way or VMS will get confused. - printf "%s %d%s\n", $ok ? "ok" : "not ok", - $test, - defined $name ? " - $name" : ''; - - printf "# Failed test at line %d\n", (caller)[2] unless $ok; - - $test++; - return $ok; +BEGIN { + chdir 't' if -d 't'; + @INC = '../lib'; + require './test.pl'; } -print "1..1\n"; +plan tests => 1; ok(defined [(1)x127,qr//,1]->[127], "qr// should extend the stack properly"); -