Ticket #42618: patch-t-06_tee.t.diff
File patch-t-06_tee.t.diff, 636 bytes (added by someuser12, 11 years ago) |
---|
-
t/06_tee.t
old new 28 28 29 29 ok close($tee), "close"; 30 30 31 is_deeply [ map{ Internals::SvREFCNT($_) } $x, $y, $z ], [1, 1, 1], "(refcnt aftere closed)"; 31 BEGIN{*rc = *Internals::SvREFCNT;} 32 is_deeply [ rc($x), rc($y), rc($z) ], [1, 1, 1], "(refcnt after closed)"; 32 33 33 34 open $tee, ">:scalar", \$x; 34 35 … … 46 47 47 48 ok close($tee), "close"; 48 49 49 is_deeply [ map{ Internals::SvREFCNT($_) } $x, $y, $z ], [1, 1, 1], "(refcnt aftere closed)";50 is_deeply [ rc($x), rc($y), rc($z) ], [1, 1, 1], "(refcnt after closed)"; 50 51 51 52 # push filehandle 52 53