Changeset 12eee4fd in rtems for testsuites/fstests


Ignore:
Timestamp:
Feb 13, 2015, 7:53:41 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
40a18d7f
Parents:
50f8bfd
Message:

IMFS: CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM

Resurrect CONFIGURE_USE_MINIIMFS_AS_BASE_FILESYSTEM.

Location:
testsuites/fstests
Files:
4 added
3 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/Makefile.am

    r50f8bfd r12eee4fd  
    22
    33_SUBDIRS =
     4_SUBDIRS += fsimfsconfig03
    45_SUBDIRS += fsimfsconfig02
    56_SUBDIRS += fsimfsconfig01
  • testsuites/fstests/configure.ac

    r50f8bfd r12eee4fd  
    7878# Explicitly list all Makefiles here
    7979AC_CONFIG_FILES([Makefile
     80fsimfsconfig03/Makefile
    8081fsimfsconfig02/Makefile
    8182fsimfsconfig01/Makefile
  • testsuites/fstests/fsimfsconfig01/init.c

    r50f8bfd r12eee4fd  
    2121#include <sys/stat.h>
    2222#include <errno.h>
     23#include <fcntl.h>
    2324#include <stdio.h>
    2425#include <unistd.h>
     
    4142  const char *generic = "generic";
    4243  const char *mnt = "mnt";
     44  const char *dev = "device";
     45  const char *file = "file";
     46  const char *fifo = "fifo";
    4347  int rv;
     48  int fd;
    4449
    4550  TEST_BEGIN();
     
    7176  rtems_test_assert(rv == 0);
    7277
     78  rv = mknod(dev, S_IFCHR | S_IRWXU, 0);
     79  rtems_test_assert(rv == 0);
     80
     81  fd = creat(file, S_IRWXU);
     82  rtems_test_assert(fd == 3);
     83
     84  rv = close(fd);
     85  rtems_test_assert(rv == 0);
     86
     87  errno = 0;
     88  rv = mkfifo(fifo, S_IRWXU);
     89  rtems_test_assert(rv == -1);
     90  rtems_test_assert(errno == ENOSYS);
     91
    7392  errno = 0;
    7493  rv = mount(
     
    88107
    89108  errno = 0;
    90   rv = unlink(generic);
    91   rtems_test_assert(rv == -1);
    92   rtems_test_assert(errno == ENOTSUP);
    93 
    94   errno = 0;
    95109  rv = symlink(generic, "link");
    96110  rtems_test_assert(rv == -1);
     
    102116  rtems_test_assert(errno == ENOTSUP);
    103117
     118  errno = 0;
     119  rv = unlink(generic);
     120  rtems_test_assert(rv == -1);
     121  rtems_test_assert(errno == ENOTSUP);
     122
    104123  TEST_END();
    105124  rtems_test_exit(0);
     
    108127#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER
    109128#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
     129
     130#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
    110131
    111132#define CONFIGURE_FILESYSTEM_IMFS
Note: See TracChangeset for help on using the changeset viewer.