Fix db makefile rule for group.db
[glibc.git] / stdio-common / bug24.c
blob4e6ffcc90bd85feaa29b4c8c9796f2a9b75c2ec8
1 #include <stdio.h>
2 #include <errno.h>
4 static int
5 do_test (void)
7 FILE *fp = fopen ("/foobar_does_no_exit", "re");
8 if (fp != NULL)
10 /* A joker created this file. Ignore the test. */
11 fclose (fp);
12 return 0;
15 if (errno == ENOENT)
17 printf ("no bug\n");
18 return 0;
21 printf ("bug : expected ENOENT, got: %m\n");
22 return 1;
25 #define TEST_FUNCTION do_test ()
26 #include "../test-skeleton.c"