1 /* Test assert_perror().
3 * This is hairier than you'd think, involving games with
20 longjmp (rec, 1); /* recover control */
48 volatile int failed = 1; /* safety in presence of longjmp() */
55 signal (SIGABRT, sigabrt);
60 failed = 0; /* should happen */
65 failed = 1; /* should not happen */
70 failed = 1; /* should not happen */
73 fgets (buf, 160, stderr);
74 if (!strstr(buf, strerror (1)))
77 fgets (buf, 160, stderr);
78 if (strstr (buf, strerror (0)))
81 fgets (buf, 160, stderr);
82 if (strstr (buf, strerror (2)))