mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-04 15:07:41 +00:00
tests: fix assertion
This commit is contained in:
parent
6f944ab196
commit
6654dbe320
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user