From 8da5ed17f020bf32d6d474ab8bec79dd261b2cb8 Mon Sep 17 00:00:00 2001 From: "Michael G. Schwern" Date: Fri, 11 Jan 2002 12:08:17 -0500 Subject: [PATCH] Re: [PATCH lib/AnyDBM_File.t] Convert to Test::More Message-ID: <20020111220817.GG2838@blackrider> p4raw-id: //depot/perl@14201 --- t/run/kill_perl.t | 2 +- t/test.pl | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/t/run/kill_perl.t b/t/run/kill_perl.t index b0f0947..cf32e4b 100644 --- a/t/run/kill_perl.t +++ b/t/run/kill_perl.t @@ -52,7 +52,7 @@ foreach my $prog (@prgs) { my($prog,$expected) = split(/\nEXPECT\n/, $raw_prog); - kill_perl($prog, $expected, { switches => $switch }, $name); + kill_perl($prog, $expected, { switches => [$switch] }, $name); } __END__ diff --git a/t/test.pl b/t/test.pl index 5f358b9..379e136 100644 --- a/t/test.pl +++ b/t/test.pl @@ -280,8 +280,7 @@ sub runperl { my %args = @_; my $runperl = $^X; if ($args{switches}) { - _quote_args(\$runperl, - ref $args{switches} ? $args{switches} : [$args{switches}]); + _quote_args(\$runperl, $args{switches}); } unless ($args{nolib}) { if ($is_macos) { -- 2.7.4