diff options
Diffstat (limited to 'test/misc/tst-scandir.c')
-rw-r--r-- | test/misc/tst-scandir.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/test/misc/tst-scandir.c b/test/misc/tst-scandir.c deleted file mode 100644 index e1c72e3c9..000000000 --- a/test/misc/tst-scandir.c +++ /dev/null @@ -1,23 +0,0 @@ -#include <dirent.h> -#include <errno.h> -#include <stdio.h> /* perror() */ -#include <stdlib.h> - -static int skip_all(const struct dirent *dirbuf) -{ - errno = EBADF; - return 0; -} - -int main(void) -{ - struct dirent **namelist; - int n; - - n = scandir(".", &namelist, skip_all, 0); - if (n < 0) { - perror("scandir"); - return EXIT_FAILURE; - } - return EXIT_SUCCESS; -} |