diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-14 13:29:13 +0000 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 1999-08-14 13:29:13 +0000 |
commit | 9394203c9c91af30a21f8e1e6ad98183a3989990 (patch) | |
tree | 8ebf2e517e9269e204f5c7aa54e768be592fab1d /t | |
parent | c5dd3cdd2117325610c635c754de6f181137c565 (diff) | |
download | perl-9394203c9c91af30a21f8e1e6ad98183a3989990.tar.gz |
Small test tweaks.
p4raw-id: //depot/cfgperl@3992
Diffstat (limited to 't')
-rwxr-xr-x | t/io/dup.t | 16 | ||||
-rwxr-xr-x | t/lib/dprof.t | 2 | ||||
-rwxr-xr-x | t/lib/odbm.t | 11 |
3 files changed, 28 insertions, 1 deletions
diff --git a/t/io/dup.t b/t/io/dup.t index f312671e56..9ad823fff7 100755 --- a/t/io/dup.t +++ b/t/io/dup.t @@ -2,7 +2,7 @@ # $RCSfile: dup.t,v $$Revision: 4.1 $$Date: 92/08/07 18:27:27 $ -print "1..6\n"; +print "1..7\n"; print "ok 1\n"; @@ -37,3 +37,17 @@ else { system 'cat Io.dup' } unlink 'Io.dup'; print STDOUT "ok 6\n"; + +# 7 # 19990811 mjd@plover.com +my ($out1, $out2) = ("Line 1\n", "Line 2\n"); +open(W, "> Io.dup") || die "Can't open stdout"; +print W $out1, $out2; +close W; +open(R1, "< Io.dup") || die "Can't read temp file"; +$in1 = <R1>; +open(R2, "<&R1") || die "Can't dup"; +$in2 = <R2>; +print "not " unless $in1 eq $out1 && $in2 eq $out2; +print "ok 7\n"; + +unlink("Io.dup"); diff --git a/t/lib/dprof.t b/t/lib/dprof.t index 97e42bfcb2..9374151353 100755 --- a/t/lib/dprof.t +++ b/t/lib/dprof.t @@ -72,3 +72,5 @@ while( @tests ){ verify $test; } } + +unlink("tmon.out"); diff --git a/t/lib/odbm.t b/t/lib/odbm.t index fc15d13ebf..f8b8a110ad 100755 --- a/t/lib/odbm.t +++ b/t/lib/odbm.t @@ -393,3 +393,14 @@ EOM untie %h; unlink <Op.dbmx*>; } + +if ($^O eq 'hpux') { + print <<EOM; +# +# If you experience failures with the odbm test in HP-UX, +# this is a well-known bug that's unfortunately very hard to fix. +# The suggested course of action is to avoid using the ODBM_File, +# but to use instead the NDBM_File extension. +# +EOM +} |