summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/support/ramdisk_support.c
diff options
context:
space:
mode:
authorSebastian Huber <sebastian.huber@embedded-brains.de>2013-02-20 13:30:43 +0100
committerSebastian Huber <sebastian.huber@embedded-brains.de>2013-02-21 10:50:04 +0100
commit71cf3e9d2f67f8c73abf8677ed92cbcc4008928d (patch)
tree807f793fbfb83e0ccb561cee2424cecc9832bcd2 /testsuites/fstests/support/ramdisk_support.c
parentbsp/gen5200: New ATA driver (diff)
downloadrtems-71cf3e9d2f67f8c73abf8677ed92cbcc4008928d.tar.bz2
libblock: Do resource allocation in one place
All resource allocations take place in rtems_bdbuf_init() now. After rtems_bdbuf_init() no fatal errors can happen due to configuration errors or resource limits. This makes it easier to detect configuration errors for users.
Diffstat (limited to '')
-rw-r--r--testsuites/fstests/support/ramdisk_support.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/testsuites/fstests/support/ramdisk_support.c b/testsuites/fstests/support/ramdisk_support.c
index 17dbb67820..0b6b50d386 100644
--- a/testsuites/fstests/support/ramdisk_support.c
+++ b/testsuites/fstests/support/ramdisk_support.c
@@ -28,20 +28,6 @@
dev_t dev = 0;
-static void initialize_swapout_task(void)
-{
- int fd = open(RAMDISK_PATH, O_RDONLY);
- int rv = 0;
-
- rtems_test_assert(fd >= 0);
-
- rv = rtems_disk_fd_sync(fd);
- rtems_test_assert(rv == 0);
-
- rv = close(fd);
- rtems_test_assert(rv == 0);
-}
-
void
init_ramdisk (void)
{
@@ -52,9 +38,6 @@ init_ramdisk (void)
rc = ramdisk_register (RAMDISK_BLOCK_SIZE, RAMDISK_BLOCK_COUNT,
false, RAMDISK_PATH, &dev);
rtems_test_assert (rc == 0);
-
-
- initialize_swapout_task();
}
void