Commit befae28f7bee2f0ca3445e0350121f1d6fa973cc

schu 2011-08-10T21:19:21

t12-repo.c: fix failing test discover0 discover0 tried to stat a non existing directory. Create it beforehand. Signed-off-by: schu <schu-github@schulog.org>

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/tests/t12-repo.c b/tests/t12-repo.c
index f819582..cc8942f 100644
--- a/tests/t12-repo.c
+++ b/tests/t12-repo.c
@@ -388,8 +388,8 @@ BEGIN_TEST(discover0, "test discover")
 	char found_path[GIT_PATH_MAX];
 	int mode = 0755;
 
-	must_pass(append_ceiling_dir(ceiling_dirs, TEMP_REPO_FOLDER));
 	git_futils_mkdir_r(DISCOVER_FOLDER, mode);
+	must_pass(append_ceiling_dir(ceiling_dirs, TEMP_REPO_FOLDER));
 
 	must_be_true(git_repository_discover(repository_path, sizeof(repository_path), DISCOVER_FOLDER, 0, ceiling_dirs) == GIT_ENOTAREPO);