From 4ffc4372dff6595a86120ec0bd311c4cb5fb8ed6 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Tue, 21 May 2024 07:03:06 +0200 Subject: Merging upstream version 1.8.1+ds. Signed-off-by: Daniel Baumann --- tests/util/assert.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/util/assert.c') diff --git a/tests/util/assert.c b/tests/util/assert.c index 3babc47..4644f35 100644 --- a/tests/util/assert.c +++ b/tests/util/assert.c @@ -92,7 +92,8 @@ void test_assert__argument_with_void_return_type(void) git_error_clear(); cl_assert_equal_p(foo, fn_returns_string(foo)); - cl_assert_equal_p(NULL, git_error_last()); + cl_assert_equal_i(GIT_ERROR_NONE, git_error_last()->klass); + cl_assert_equal_s("no error", git_error_last()->message); } void test_assert__internal(void) -- cgit v1.2.3