diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-17 14:39:20 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2002-01-17 14:39:20 +0000 |
commit | f5cda3312a6c23399b23c70aea893ce8a70c7d94 (patch) | |
tree | a2532196803c25619c07f71ec2c72b94769c0936 /t/run | |
parent | d0ed03428d5c265b5f17dcb8cb932ac6647a5705 (diff) | |
download | perl-f5cda3312a6c23399b23c70aea893ce8a70c7d94.tar.gz |
Rename kill_perl to fresh_perl; replace fresh_perl()
with fresh_perl_is() and fresh_perl_like().
p4raw-id: //depot/perl@14309
Diffstat (limited to 't/run')
-rw-r--r-- | t/run/fresh_perl.t (renamed from t/run/kill_perl.t) | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/t/run/kill_perl.t b/t/run/fresh_perl.t index 3b46009a5b..73680ebc58 100644 --- a/t/run/kill_perl.t +++ b/t/run/fresh_perl.t @@ -2,7 +2,7 @@ # ** DO NOT ADD ANY MORE TESTS HERE ** # Instead, put the test in the appropriate test file and use the -# kill_perl() function in t/test.pl. +# fresh_perl_is()/fresh_perl_like() functions in t/test.pl. # This is for tests that will normally cause segfaults, and other nasty # errors that might kill the interpreter and for some reason you can't @@ -52,7 +52,9 @@ foreach my $prog (@prgs) { my($prog,$expected) = split(/\nEXPECT\n/, $raw_prog); - kill_perl($prog, $expected, { switches => [$switch] }, $name); + $expected =~ s/\n+$//; + + fresh_perl_is($prog, $expected, { switches => [$switch] }, $name); } __END__ @@ -280,7 +282,7 @@ print "ok\n" if ("\0" lt "\xFF"); EXPECT ok ######## -open(H,'run/kill_perl.t'); # must be in the 't' directory +open(H,'run/fresh_perl.t'); # must be in the 't' directory stat(H); print "ok\n" if (-e _ and -f _ and -r _); EXPECT |