Permalink
Browse files

tests for &indir

  • Loading branch information...
1 parent 2ce433c commit 9b8a6da81a0845e375f95fd0f0fb53f2440562a6 @moritz moritz committed Jul 3, 2012
Showing with 9 additions and 0 deletions.
  1. +9 −0 t/panda/common.t
View
@@ -0,0 +1,9 @@
+use v6;
+use Test;
+use Panda::Common;
+
+plan 2;
+my $cwd = cwd;
+
+dies_ok { indir 't', { die "OH NOEZ" } }, '&indir passes exceptions on';
+is cwd(), $cwd, 'indir rewinds cwd even when exceptions were thrown';

0 comments on commit 9b8a6da

Please sign in to comment.