From 2e0177d8d844a2e77588efb9c43701f1318ef14d Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Wed, 30 Jan 2013 17:03:38 +0100 Subject: fstests: Check resources used by FAT file system --- testsuites/fstests/mdosfs_support/fs_support.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'testsuites') diff --git a/testsuites/fstests/mdosfs_support/fs_support.c b/testsuites/fstests/mdosfs_support/fs_support.c index 0cf71ec3d2..27882b8216 100644 --- a/testsuites/fstests/mdosfs_support/fs_support.c +++ b/testsuites/fstests/mdosfs_support/fs_support.c @@ -18,6 +18,7 @@ #include #include +#include #include "ramdisk_support.h" #include "fstest.h" @@ -37,6 +38,8 @@ static const msdos_format_request_param_t rqdata = { .info_level = 0 }; +static rtems_resource_snapshot before_mount; + void test_initialize_filesystem(void) { int rc=0; @@ -48,6 +51,8 @@ void test_initialize_filesystem(void) rc=msdos_format(RAMDISK_PATH,&rqdata); rtems_test_assert(rc==0); + rtems_resource_snapshot_take(&before_mount); + rc=mount(RAMDISK_PATH, BASE_FOR_TEST, "dosfs", @@ -62,6 +67,7 @@ void test_shutdown_filesystem(void) int rc=0; rc=unmount(BASE_FOR_TEST) ; rtems_test_assert(rc==0); + rtems_test_assert(rtems_resource_snapshot_check(&before_mount)); del_ramdisk(); } -- cgit v1.2.3