From 60cf8a5c1680effdeb6f8df9bd47e0eedcc57709 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Fri, 6 Feb 2015 16:32:39 +0100 Subject: IMFS: Add root directory to FS info Fix memory leak in IMFS_fsunmount(). --- testsuites/fstests/mimfs_support/fs_support.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'testsuites/fstests') diff --git a/testsuites/fstests/mimfs_support/fs_support.c b/testsuites/fstests/mimfs_support/fs_support.c index 5a50d82d79..849d856bea 100644 --- a/testsuites/fstests/mimfs_support/fs_support.c +++ b/testsuites/fstests/mimfs_support/fs_support.c @@ -14,10 +14,13 @@ #include #include +#include #include "fstest.h" #include "fstest_support.h" +static rtems_resource_snapshot before_mount; + void test_initialize_filesystem (void) { @@ -25,6 +28,8 @@ test_initialize_filesystem (void) rc = mkdir (BASE_FOR_TEST,S_IRWXU|S_IRWXG|S_IRWXO); rtems_test_assert (rc == 0); + rtems_resource_snapshot_take(&before_mount); + rc = mount (NULL, BASE_FOR_TEST, "imfs", RTEMS_FILESYSTEM_READ_WRITE, NULL); rtems_test_assert (rc == 0); } @@ -36,6 +41,8 @@ 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)); } /* configuration information */ -- cgit v1.2.3