summaryrefslogtreecommitdiffstats
path: root/testsuites/libtests/block01
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-11-30 12:41:10 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2009-11-30 12:41:10 +0000
commitf9925bcc246e3d923259d5816d9bfe8f1d0714fd (patch)
treed34cb9aa320d8c14d308cb0e2393936ab62be3ba /testsuites/libtests/block01
parentdocumentation fixes (diff)
downloadrtems-f9925bcc246e3d923259d5816d9bfe8f1d0714fd.tar.bz2
added documentation
corrections in block tests added Makefile.am
Diffstat (limited to 'testsuites/libtests/block01')
-rw-r--r--testsuites/libtests/block01/Makefile.am2
-rw-r--r--testsuites/libtests/block01/block01.doc32
-rw-r--r--testsuites/libtests/block01/init.c4
3 files changed, 37 insertions, 1 deletions
diff --git a/testsuites/libtests/block01/Makefile.am b/testsuites/libtests/block01/Makefile.am
index b7f5565b5c..653969a26d 100644
--- a/testsuites/libtests/block01/Makefile.am
+++ b/testsuites/libtests/block01/Makefile.am
@@ -7,7 +7,7 @@ MANAGERS = io semaphore event
rtems_tests_PROGRAMS = block01
block01_SOURCES = init.c
-dist_rtems_tests_DATA = block01.scn
+dist_rtems_tests_DATA = block01.scn block01.doc
include $(RTEMS_ROOT)/make/custom/@RTEMS_BSP@.cfg
include $(top_srcdir)/../automake/compile.am
diff --git a/testsuites/libtests/block01/block01.doc b/testsuites/libtests/block01/block01.doc
new file mode 100644
index 0000000000..34a7ad7ab7
--- /dev/null
+++ b/testsuites/libtests/block01/block01.doc
@@ -0,0 +1,32 @@
+#
+# $Id$
+#
+# Copyright (c) 2009
+# embedded brains GmbH
+# Obere Lagerstr. 30
+# D-82178 Puchheim
+# Germany
+# <rtems@embedded-brains.de>
+#
+# The license and distribution terms for this file may be
+# found in the file LICENSE in this distribution or at
+# http://www.rtems.com/license/LICENSE.
+#
+
+This file describes the directives and concepts tested by this test set.
+
+test set name: block01
+
+directives:
+
+ rtems_disk_create_log
+ rtems_disk_create_phys
+ rtems_disk_delete
+ rtems_disk_io_done
+ rtems_disk_io_initialize
+ rtems_disk_release
+
+concepts:
+
++ Check error conditions.
++ Create and delete physical and logical disks.
diff --git a/testsuites/libtests/block01/init.c b/testsuites/libtests/block01/init.c
index 4f9b831ae7..067f883738 100644
--- a/testsuites/libtests/block01/init.c
+++ b/testsuites/libtests/block01/init.c
@@ -17,6 +17,8 @@
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
+ *
+ * $Id$
*/
#include <stdio.h>
@@ -153,6 +155,8 @@ static void test_diskdevs(void)
sc = rtems_io_unregister_driver(major);
ASSERT_SC(sc);
+ ramdisk_free(rd);
+
sc = rtems_disk_io_done();
ASSERT_SC(sc);
}