[rtems commit] fstests: Check resources used by FAT file system
Sebastian Huber
sebh at rtems.org
Wed Jan 30 16:03:40 UTC 2013
Module: rtems
Branch: master
Commit: 2e0177d8d844a2e77588efb9c43701f1318ef14d
Changeset: http://git.rtems.org/rtems/commit/?id=2e0177d8d844a2e77588efb9c43701f1318ef14d
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Wed Jan 30 17:03:38 2013 +0100
fstests: Check resources used by FAT file system
---
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 0cf71ec..27882b8 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();
}
More information about the vc
mailing list