Skip to content
Permalink
5c43483f0c
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time
26 lines (22 sloc) 446 Bytes
#include <stdio.h>
#include <errno.h>
static int
do_test (void)
{
FILE *fp = fopen ("/foobar_does_no_exit", "re");
if (fp != NULL)
{
/* A joker created this file. Ignore the test. */
fclose (fp);
return 0;
}
if (errno == ENOENT)
{
printf ("no bug\n");
return 0;
}
printf ("bug : expected ENOENT, got: %m\n");
return 1;
}
#define TEST_FUNCTION do_test ()
#include "../test-skeleton.c"