glibc/tests/Regression/bz503723-fopen-mode-x-ignored-in-some-cases/fopen.c
Sergey Kolosov ab4bc8a24e Extend the test coverage
Move some of the RHEL QE testcases upstream to Fedora.
2022-05-31 09:29:27 +02:00

22 lines
266 B
C

#include <string.h>
#include <errno.h>
#include <stdio.h>
int main(int argc, char *argv[])
{
FILE* f;
if (argc != 3) return 1;
f = fopen (argv[1], argv[2]);
if (f == NULL) {
return 1;
}
if (fclose (f)) {
return 1;
}
return 0;
}