diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-01-30 17:03:38 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2013-01-30 17:08:05 +0100 |
commit | 2e0177d8d844a2e77588efb9c43701f1318ef14d (patch) | |
tree | 61eebe9a0885b9117a432d8f2a325cdd7b742d4b /testsuites/fstests/mdosfs_support/fs_support.c | |
parent | fstests: Use global environment and clean up (diff) | |
download | rtems-2e0177d8d844a2e77588efb9c43701f1318ef14d.tar.bz2 |
fstests: Check resources used by FAT file system
Diffstat (limited to '')
-rw-r--r-- | testsuites/fstests/mdosfs_support/fs_support.c | 6 |
1 files changed, 6 insertions, 0 deletions
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 <rtems/libio.h> #include <rtems/dosfs.h> +#include <rtems/libcsupport.h> #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(); } |