Permalink
Browse files

fixed END blocks for test files

I just realized why test_files/ wasn't getting cleaned up whenever I had a syntax error:
the "cd .." wasn't in the END block
fixed that up and made the formatting consistent across test files
  • Loading branch information...
1 parent 08a4269 commit 46b9a4c5652b0938ce3b9877b086b900803924c9 @barefootcoder committed Jan 2, 2012
Showing with 20 additions and 24 deletions.
  1. +3 −4 t/dm_skeleton.t
  2. +3 −4 t/file_sizes.t
  3. +3 −4 t/line_counters.t
  4. +3 −4 t/link_counts.t
  5. +4 −2 t/owner.t
  6. +1 −2 t/test_dirs.t
  7. +3 −4 t/test_files.t
View
@@ -74,9 +74,8 @@ test_test();
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-chdir '..' or print "bail out! Could not change directories: $!";
-
END {
-unlink glob( "test_files/*" );
-rmdir "test_files";
+ chdir '..' or print "bail out! Could not change directories: $!";
+ unlink glob( "test_files/*" );
+ rmdir "test_files";
}
View
@@ -163,9 +163,8 @@ test_test();
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-chdir '..' or print "bail out! Could not change directories: $!";
-
END {
-unlink glob( "test_files/*" );
-rmdir "test_files";
+ chdir '..' or print "bail out! Could not change directories: $!";
+ unlink glob( "test_files/*" );
+ rmdir "test_files";
}
View
@@ -189,9 +189,8 @@ test_test();
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-chdir '..' or print "bail out! Could not change directories: $!";
-
END {
-unlink glob( "test_files/*" );
-rmdir "test_files";
+ chdir '..' or print "bail out! Could not change directories: $!";
+ unlink glob( "test_files/*" );
+ rmdir "test_files";
}
View
@@ -84,9 +84,8 @@ test_test();
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-chdir '..' or print "bail out! Could not change directories: $!";
-
END {
-unlink glob( "test_files/*" );
-rmdir "test_files";
+ chdir '..' or print "bail out! Could not change directories: $!";
+ unlink glob( "test_files/*" );
+ rmdir "test_files";
}
View
@@ -189,7 +189,9 @@ test_diag(
group_isnt( $filename, $file_group_name, $name );
test_test( $name );
+# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
+
END {
-unlink glob( "test_files/*" );
-rmdir "test_files";
+ unlink glob( "test_files/*" );
+ rmdir "test_files";
}
View
@@ -55,9 +55,8 @@ done_testing();
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-chdir '..' or print "bail out! Could not change directories: $!";
-
END {
+ chdir '..' or print "bail out! Could not change directories: $!";
unlink glob( "test_files/test_dir/*" );
rmdir "test_files/test_dir";
unlink glob( "test_files/*" );
View
@@ -128,9 +128,8 @@ test_test();
# # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
-chdir '..' or print "bail out! Could not change directories: $!";
-
END {
-unlink glob( "test_files/*" );
-rmdir "test_files";
+ chdir '..' or print "bail out! Could not change directories: $!";
+ unlink glob( "test_files/*" );
+ rmdir "test_files";
}

0 comments on commit 46b9a4c

Please sign in to comment.