diff --git a/t/testutil.pm b/t/testutil.pm index a700bd5..3913cfc 100755 --- a/t/testutil.pm +++ b/t/testutil.pm @@ -66,6 +66,8 @@ sub uncapture_stderr { } sub init_test_dirs { + -d "t" or die "Was expecting tests to be run from root of repo\n"; + # Create a run_from/ subdirectory for tests which want to run # from a separate directory outside the Stow directory or # target directory.