Changeset 334222f0 in rtems


Ignore:
Timestamp:
Jan 30, 2013, 4:00:22 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
065441d8
Parents:
399afaf
git-author:
Sebastian Huber <sebastian.huber@…> (01/30/13 16:00:22)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/30/13 16:08:05)
Message:

fstests: Initialize swapout task

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/support/ramdisk_support.c

    r399afaf r334222f0  
    1111#include "config.h"
    1212#endif
     13
     14#include <sys/stat.h>
     15#include <fcntl.h>
    1316
    1417#include <rtems/ramdisk.h>
     
    2629dev_t dev = 0;
    2730
     31static void initialize_swapout_task(void)
     32{
     33  int fd = open(RAMDISK_PATH, O_RDONLY);
     34  int rv = 0;
     35
     36  rtems_test_assert(fd >= 0);
     37
     38  rv = rtems_disk_fd_sync(fd);
     39  rtems_test_assert(rv == 0);
     40
     41  rv = close(fd);
     42  rtems_test_assert(rv == 0);
     43}
     44
    2845void
    2946init_ramdisk (void)
     
    3754  rtems_test_assert (rc == 0);
    3855
     56
     57  initialize_swapout_task();
    3958}
    4059
Note: See TracChangeset for help on using the changeset viewer.