summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/mimfs_support/fs_support.c
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites/fstests/mimfs_support/fs_support.c')
-rw-r--r--testsuites/fstests/mimfs_support/fs_support.c41
1 files changed, 41 insertions, 0 deletions
diff --git a/testsuites/fstests/mimfs_support/fs_support.c b/testsuites/fstests/mimfs_support/fs_support.c
new file mode 100644
index 0000000000..ee8a904060
--- /dev/null
+++ b/testsuites/fstests/mimfs_support/fs_support.c
@@ -0,0 +1,41 @@
+/*
+ * $Id$
+ */
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include <sys/stat.h>
+#include <sys/types.h>
+
+#include "pmacros.h"
+#include "fs_config.h"
+
+#include <rtems/libio.h>
+
+void test_initialize_filesystem(void)
+{
+ int rc;
+
+ rc = mkdir( BASE_FOR_TEST, 0777 );
+ rtems_test_assert( rc == 0 );
+
+ rc = mount(
+ "null",
+ BASE_FOR_TEST,
+ "imfs",
+ RTEMS_FILESYSTEM_READ_ONLY,
+ NULL
+ );
+ rtems_test_assert( rc == 0 );
+}
+
+void test_shutdown_filesystem(void)
+{
+ int rc;
+
+ rc = unmount( BASE_FOR_TEST );
+ rtems_test_assert( rc == 0 );
+
+}