summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-11 16:26:47 +0000
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2007-02-11 16:26:47 +0000
commit66b941864ac8a8f2fe5cb4315b4e9fcb08835dd8 (patch)
tree96a79a524e42762ec86422a05b6d05041554b495 /t
parentc8c13c2248f0124bc4c3d1625cab2bdb0be6c8da (diff)
downloadperl-66b941864ac8a8f2fe5cb4315b4e9fcb08835dd8.tar.gz
Convert new test to using t/test.pl.
(No idea where it could fit better. And since it uses the stack, it's a bit fragile) p4raw-id: //depot/perl@30212
Diffstat (limited to 't')
-rw-r--r--t/op/qrstack.t22
1 files changed, 6 insertions, 16 deletions
diff --git a/t/op/qrstack.t b/t/op/qrstack.t
index 6483eba38f..47d190d055 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");
-