tst-putenv.c 273 B

123456789101112131415161718
  1. #include <stdio.h>
  2. #include <stdlib.h>
  3. static int
  4. do_test (void)
  5. {
  6. char *p = getenv ("SOMETHING_NOBODY_USES");
  7. if (p == NULL)
  8. {
  9. puts ("envvar not defined");
  10. return 1;
  11. }
  12. return 0;
  13. }
  14. #define TEST_FUNCTION do_test ()
  15. #include "../test-skeleton.c"