diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-02-06 16:32:39 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2015-02-12 20:53:35 +0100 |
commit | 60cf8a5c1680effdeb6f8df9bd47e0eedcc57709 (patch) | |
tree | 2d54d470c24d53781e7d6e28fedf199a0c4b4870 /testsuites/fstests | |
parent | 9247d3faeefcfd2223cd5b12340127aecc319c1c (diff) |
IMFS: Add root directory to FS info
Fix memory leak in IMFS_fsunmount().
Diffstat (limited to 'testsuites/fstests')
-rw-r--r-- | testsuites/fstests/mimfs_support/fs_support.c | 7 |
1 files changed, 7 insertions, 0 deletions
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 <sys/stat.h> #include <rtems/libio.h> +#include <rtems/libcsupport.h> #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 */ |