util: clean up test resources in the sandbox

Ensure that we clean up cruft that we create for testing, so that future
tests don't have troubles.
This commit is contained in:
Edward Thomson
2024-02-19 09:04:39 -08:00
parent bdf4d70a13
commit 57870e9f4d

View File

@@ -278,6 +278,10 @@ void test_path_win32__8dot3_name(void)
cl_must_pass(p_mkdir(".bar", 0777));
cl_assert_equal_s("BAR~2", (shortname = git_win32_path_8dot3_name(".bar")));
git__free(shortname);
p_rmdir(".foo");
p_rmdir(".bar");
p_unlink("bar~1");
#endif
}