errno.c 279 B

12345678910111213141516171819202122
  1. #include <errno.h>
  2. #include "test.h"
  3. void test_errno_h(void)
  4. {
  5. int errno_values[] = {
  6. EDOM,
  7. ERANGE,
  8. #if defined __STDC_VERSION__
  9. EILSEQ,
  10. #endif
  11. };
  12. testing_header("errno.h");
  13. test_distinct(errno_values);
  14. errno = 0;
  15. test_int_equals(errno, 0);
  16. testing_end();
  17. }