Changeset 2e0177d8 in rtems


Ignore:
Timestamp:
Jan 30, 2013, 4:03:38 PM (7 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
80e3743
Parents:
065441d8
git-author:
Sebastian Huber <sebastian.huber@…> (01/30/13 16:03:38)
git-committer:
Sebastian Huber <sebastian.huber@…> (01/30/13 16:08:05)
Message:

fstests: Check resources used by FAT file system

File:
1 edited

Legend:

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

    r065441d8 r2e0177d8  
    1919#include <rtems/libio.h>
    2020#include <rtems/dosfs.h>
     21#include <rtems/libcsupport.h>
    2122
    2223#include "ramdisk_support.h"
     
    3839};
    3940
     41static rtems_resource_snapshot before_mount;
     42
    4043void test_initialize_filesystem(void)
    4144{
     
    4851  rc=msdos_format(RAMDISK_PATH,&rqdata);
    4952  rtems_test_assert(rc==0);
     53
     54  rtems_resource_snapshot_take(&before_mount);
    5055
    5156  rc=mount(RAMDISK_PATH,
     
    6368  rc=unmount(BASE_FOR_TEST) ;
    6469  rtems_test_assert(rc==0);
     70  rtems_test_assert(rtems_resource_snapshot_check(&before_mount));
    6571  del_ramdisk();
    6672}
Note: See TracChangeset for help on using the changeset viewer.