Re: [perl #36622] y/// at end of file
[p5sagit/p5-mst-13.2.git] / t / op / gv.t
index e2e7197..4580473 100755 (executable)
--- a/t/op/gv.t
+++ b/t/op/gv.t
@@ -247,10 +247,12 @@ is($j[0], 1);
 }
 
 {
+    # Need some sort of die or warn to get the global destruction text if the
+    # bug is still present
     my $output = runperl(prog => <<'EOPROG');
 package M;
 $| = 1;
-sub DESTROY {print qq{Farewell $_[0]}}
+sub DESTROY {eval {die qq{Farewell $_[0]}}; print $@}
 package main;
 
 bless \$A::B, 'M';