demo.c 363 B

12345678910111213141516171819202122232425262728
  1. #include <stdlib.h>
  2. #include <stdio.h>
  3. int testc_faux_ini_good(void)
  4. {
  5. char *path = NULL;
  6. path = getenv("TESTC_TMPDIR");
  7. if (path)
  8. printf("Env var is [%s]\n", path);
  9. return 0;
  10. }
  11. int testc_faux_ini_bad(void)
  12. {
  13. printf("Some debug information here\n");
  14. return -1;
  15. }
  16. int testc_faux_ini_signal(void)
  17. {
  18. char *p = NULL;
  19. printf("%s\n", p);
  20. return -1;
  21. }