Ignore:
Timestamp:
Feb 6, 2015, 3:32:39 PM (5 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
11026956
Parents:
9247d3f
git-author:
Sebastian Huber <sebastian.huber@…> (02/06/15 15:32:39)
git-committer:
Sebastian Huber <sebastian.huber@…> (02/12/15 19:53:35)
Message:

IMFS: Add root directory to FS info

Fix memory leak in IMFS_fsunmount().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/mimfs_support/fs_support.c

    r9247d3f r60cf8a5  
    1515#include <sys/stat.h>
    1616#include <rtems/libio.h>
     17#include <rtems/libcsupport.h>
    1718
    1819#include "fstest.h"
    1920#include "fstest_support.h"
     21
     22static rtems_resource_snapshot before_mount;
    2023
    2124void
     
    2528  rc = mkdir (BASE_FOR_TEST,S_IRWXU|S_IRWXG|S_IRWXO);
    2629  rtems_test_assert (rc == 0);
     30
     31  rtems_resource_snapshot_take(&before_mount);
    2732
    2833  rc = mount (NULL, BASE_FOR_TEST, "imfs", RTEMS_FILESYSTEM_READ_WRITE, NULL);
     
    3742  rc = unmount (BASE_FOR_TEST);
    3843  rtems_test_assert (rc == 0);
     44
     45  rtems_test_assert(rtems_resource_snapshot_check(&before_mount));
    3946}
    4047
Note: See TracChangeset for help on using the changeset viewer.