Commit 6654dbe3207a16bae7b5f96034faf2075ff1942b

nulltoken 2012-06-07T14:09:25

tests: fix assertion

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/tests-clar/core/errors.c b/tests-clar/core/errors.c
index 0be3e7a..10c0cdd 100644
--- a/tests-clar/core/errors.c
+++ b/tests-clar/core/errors.c
@@ -31,7 +31,7 @@ void test_core_errors__new_school(void)
 	do {
 		struct stat st;
 		memset(&st, 0, sizeof(st));
-		assert(p_lstat("this_file_does_not_exist", &st) < 0);
+		cl_assert(p_lstat("this_file_does_not_exist", &st) < 0);
 		GIT_UNUSED(st);
 	} while (false);
 	giterr_set(GITERR_OS, "stat failed"); /* internal fn */