Commit f210cb5b1442f82e2f930909d8430f7cc6661c5f

Russell Belfer 2014-03-24T10:58:10

Merge pull request #2201 from ethomson/gitbuf_test_fix env test needs to deref git_buf's ptr

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests/core/env.c b/tests/core/env.c
index 4383d96..b01ad1c 100644
--- a/tests/core/env.c
+++ b/tests/core/env.c
@@ -240,7 +240,7 @@ static void check_global_searchpath(
 	else if (position > 0)
 		cl_assert(git__suffixcmp(out.ptr, path) == 0);
 	else
-		cl_assert_equal_s(out, path);
+		cl_assert_equal_s(out.ptr, path);
 
 	/* find file using new path */
 	cl_git_pass(git_sysdir_find_global_file(temp, file));