diff --git a/test/test_helper.bash b/test/test_helper.bash index 9e10401..d504bc1 100644 --- a/test/test_helper.bash +++ b/test/test_helper.bash @@ -7,5 +7,7 @@ setup() { } teardown() { + # Safe guard, if $TMP might end up empty! + [[ -d "$TMP" ]] || { echo "FATAL: \$TMP is not a directory in teardown."; exit 1; } rm -f "$TMP"/* }