summaryrefslogtreecommitdiff
path: root/test/misc/dirent.c
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:29:21 +0200
committerWaldemar Brodkorb <wbx@uclibc-ng.org>2016-10-28 20:31:55 +0200
commit99ef2719fb3d703fe38c4113cd7f5adec516dd3a (patch)
tree2c1f77cb41b60ccbf8faa77a3640491a3546b546 /test/misc/dirent.c
parent543308f6c46cf2edf8a524bc9c631e472570fe72 (diff)
test: remove test suite
The test suite is now a developed in a separate git repository. See here: http://cgit.uclibc-ng.org/cgi/cgit/uclibc-ng-test.git The test suite should be just like every other software compiled with the cross-toolchain. In the past strange problems where found when the test suite got build in the toolchain creation step.
Diffstat (limited to 'test/misc/dirent.c')
-rw-r--r--test/misc/dirent.c39
1 files changed, 0 insertions, 39 deletions
diff --git a/test/misc/dirent.c b/test/misc/dirent.c
deleted file mode 100644
index 491e3cf75..000000000
--- a/test/misc/dirent.c
+++ /dev/null
@@ -1,39 +0,0 @@
-#include <stdio.h>
-#include <stdlib.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <dirent.h>
-
-#define _DTIFY(DT) [DT] #DT
-const char * const types[] = {
- _DTIFY(DT_UNKNOWN),
- _DTIFY(DT_FIFO),
- _DTIFY(DT_CHR),
- _DTIFY(DT_DIR),
- _DTIFY(DT_BLK),
- _DTIFY(DT_REG),
- _DTIFY(DT_LNK),
- _DTIFY(DT_SOCK),
- _DTIFY(DT_WHT)
-};
-
-int main(int argc, char *argv[])
-{
- DIR *dirh;
- struct dirent *de;
- const char *mydir = (argc == 1 ? "/" : argv[1]);
-
- if ((dirh = opendir(mydir)) == NULL) {
- perror("opendir");
- return 1;
- }
-
- printf("readdir() says:\n");
- while ((de = readdir(dirh)) != NULL)
- printf("\tdir entry %s: %s\n", types[de->d_type], de->d_name);
-
- closedir(dirh);
-
- return 0;
-}