Use a 64 bit off_t throughout the library and tests on POSIX
[libgit2/raj.git] / tests / t0001-errno.c
blob01768b00b6b8cf1f5e34f7f416e0d506497cfec8
1 #include "test_lib.h"
2 #include "errors.h"
4 BEGIN_TEST(errno_zero_on_init)
5 must_be_true(git_errno == 0);
6 END_TEST
8 BEGIN_TEST(set_ENOTOID)
9 must_be_true(GIT_ENOTOID != 0);
10 git_errno = GIT_ENOTOID;
11 must_be_true(git_errno == GIT_ENOTOID);
12 must_pass(strcmp(git_strerror(git_errno), "Not a git oid"));
13 END_TEST