summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
-