summaryrefslogtreecommitdiff
path: root/tests/t0001-errno.c
blob: acb12d3a5c66edf8c607333b761be8449c3d0e3b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include "test_lib.h"
#include "errors.h"

BEGIN_TEST(errno_zero_on_init)
	must_be_true(git_errno == 0);
END_TEST

BEGIN_TEST(set_ENOTOID)
	must_be_true(GIT_ENOTOID != 0);
	git_errno = GIT_ENOTOID;
	must_be_true(git_errno == GIT_ENOTOID);
END_TEST