Commit 0a74f391be5f511a944cd7170946669fe27978dd

Carson Howard 2017-10-16T16:16:03

test: submodule: add: use p_mkdir to create directories

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/submodule/add.c b/tests/submodule/add.c
index ca6500d..dec36a5 100644
--- a/tests/submodule/add.c
+++ b/tests/submodule/add.c
@@ -143,7 +143,7 @@ void test_submodule_add__path_exists_in_index(void)
 	git_buf_joinpath(&dirname, git_repository_workdir(g_repo), "/TestGitRepository");
 	git_buf_joinpath(&filename, dirname.ptr, "/test.txt");
 
-	mkdir(dirname.ptr, 0700);
+	p_mkdir(dirname.ptr, 0700);
 	fd = fopen(filename.ptr, "w");
 	fclose(fd);