stdio.c 497 B

12345678910111213141516171819202122232425262728293031323334353637
  1. #include <stdio.h>
  2. #include "_stdio.h"
  3. #include "test.h"
  4. FILE *test_file;
  5. fpos_t test_fpos;
  6. size_t test_size;
  7. void test_stdio_h(void)
  8. {
  9. int buftypes[] = {
  10. _IOFBF,
  11. _IOLBF,
  12. _IONBF,
  13. };
  14. int seeks[] = {
  15. SEEK_CUR,
  16. SEEK_END,
  17. SEEK_SET,
  18. };
  19. testing_header("stdio.h");
  20. test_distinct(buftypes);
  21. test_distinct(seeks);
  22. test_min(BUFSIZ, 256);
  23. test_min(FILENAME_MAX, 1);
  24. test_min(FOPEN_MAX, 8);
  25. test_min(L_tmpnam, 1);
  26. test_true(NULL == 0);
  27. test_min(TMP_MAX, 25);
  28. testing_end();
  29. }