repo.or.cz
/
glibc.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Update iso14651_t1_common file to ISO14651_2016_TABLE1_en.txt [BZ #14095]
[glibc.git]
/
stdio-common
/
bug24.c
blob
4e6ffcc90bd85feaa29b4c8c9796f2a9b75c2ec8
1
#include <stdio.h>
2
#include <errno.h>
3
4
static int
5
do_test
(
void
)
6
{
7
FILE
*
fp
=
fopen
(
"/foobar_does_no_exit"
,
"re"
);
8
if
(
fp
!=
NULL
)
9
{
10
/* A joker created this file. Ignore the test. */
11
fclose
(
fp
);
12
return
0
;
13
}
14
15
if
(
errno
==
ENOENT
)
16
{
17
printf
(
"no bug
\n
"
);
18
return
0
;
19
}
20
21
printf
(
"bug : expected ENOENT, got: %m
\n
"
);
22
return
1
;
23
}
24
25
#define TEST_FUNCTION do_test ()
26
#include
"../test-skeleton.c"