Ignore:
Timestamp:
Feb 14, 2015, 7:07:19 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
a43a3466
Parents:
5640dd5
git-author:
Sebastian Huber <sebastian.huber@…> (02/14/15 19:07:19)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/14/15 20:34:42)
Message:

IMFS: Add CONFIGURE_IMFS_DISABLE_READDIR

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/fsimfsconfig01/init.c

    r5640dd5 rf785492  
    2020
    2121#include <sys/stat.h>
     22#include <dirent.h>
    2223#include <errno.h>
    2324#include <fcntl.h>
     
    4748  int rv;
    4849  int fd;
     50  DIR *dirp;
     51  struct dirent *dire;
     52  struct stat st;
    4953
    5054  TEST_BEGIN();
     
    8892  rtems_test_assert(rv == -1);
    8993  rtems_test_assert(errno == ENOSYS);
     94
     95  dirp = opendir(mnt);
     96  rtems_test_assert(dirp != NULL);
     97
     98  errno = 0;
     99  dire = readdir(dirp);
     100  rtems_test_assert(dire == NULL);
     101  rtems_test_assert(errno == ENOTSUP);
     102
     103  rv = closedir(dirp);
     104  rtems_test_assert(rv == 0);
     105
     106  rv = stat(mnt, &st);
     107  rtems_test_assert(rv == 0);
     108  rtems_test_assert(st.st_size == 0);
    90109
    91110  errno = 0;
     
    146165#define CONFIGURE_IMFS_DISABLE_MOUNT
    147166#define CONFIGURE_IMFS_DISABLE_RENAME
     167#define CONFIGURE_IMFS_DISABLE_READDIR
    148168#define CONFIGURE_IMFS_DISABLE_RMNOD
    149169#define CONFIGURE_IMFS_DISABLE_SYMLINK
Note: See TracChangeset for help on using the changeset viewer.