Ignore:
Timestamp:
Sep 14, 2017, 1:21:14 PM (3 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
8fa75d3
Parents:
baef823c
git-author:
Sebastian Huber <sebastian.huber@…> (09/14/17 13:21:14)
git-committer:
Sebastian Huber <sebastian.huber@…> (09/15/17 08:55:38)
Message:

libio: Use FIFO for iop free list

Update #3136.

File:
1 edited

Legend:

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

    rbaef823c rac74162  
    406406}
    407407
     408static void test_fd_free_fifo(const char *path)
     409{
     410  int a;
     411  int b;
     412  int rv;
     413
     414  a = open(path, O_RDWR);
     415  rtems_test_assert(a >= 0);
     416
     417  rv = close(a);
     418  rtems_test_assert(rv == 0);
     419
     420  b = open(path, O_RDWR);
     421  rtems_test_assert(b >= 0);
     422
     423  rv = close(b);
     424  rtems_test_assert(rv == 0);
     425
     426  rtems_test_assert(a != b);
     427}
     428
    408429static void test(test_context *ctx)
    409430{
     
    420441  );
    421442  rtems_test_assert(rv == 0);
     443
     444  test_fd_free_fifo(path);
    422445
    423446  sc = rtems_task_create(
     
    470493  rtems_test_assert(rv == 0);
    471494
    472   rtems_test_assert(ctx->close_count == 15);
     495  rtems_test_assert(ctx->close_count == 17);
    473496  rtems_test_assert(ctx->fcntl_count == 1);
    474497  rtems_test_assert(ctx->fdatasync_count == 1);
    475   rtems_test_assert(ctx->fstat_count == 38);
     498  rtems_test_assert(ctx->fstat_count == 42);
    476499  rtems_test_assert(ctx->fsync_count == 1);
    477500  rtems_test_assert(ctx->ftruncate_count == 1);
    478501  rtems_test_assert(ctx->ioctl_count == 1);
    479502  rtems_test_assert(ctx->lseek_count == 1);
    480   rtems_test_assert(ctx->open_count == 15);
     503  rtems_test_assert(ctx->open_count == 17);
    481504  rtems_test_assert(ctx->read_count == 1);
    482505  rtems_test_assert(ctx->readv_count == 1);
     
    496519#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER
    497520
    498 #define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 4
     521#define CONFIGURE_LIBIO_MAXIMUM_FILE_DESCRIPTORS 5
    499522
    500523#define CONFIGURE_MAXIMUM_TASKS 2
Note: See TracChangeset for help on using the changeset viewer.