summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/fstests/mdosfs_support/fs_support.c6
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();
}