summaryrefslogtreecommitdiff
path: root/errno.c
blob: 4eaed659ca20da46091d94e28e9d50003b44c409 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#include <errno.h>
#include "test.h"

void test_errno_h(void)
{
	int errno_values[] = {
		EDOM,
		ERANGE,
		#if defined __STDC_VERSION__
		EILSEQ,
		#endif
	};

	testing_header("errno.h");

	test_distinct(errno_values);
	errno = 0;
	test_int_equals(errno, 0);

	testing_end();
}