summaryrefslogtreecommitdiffstats
path: root/testsuites/fstests/fsrfsbitmap01
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-28 14:04:08 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-10-01 15:40:20 -0500
commit35c58a566205e429b3b67803d6ad54db974a6d81 (patch)
tree77d747d4dc72be140850223bb445f4859bef571f /testsuites/fstests/fsrfsbitmap01
parentNew fstest to cover RFS bitmaps - fsrfsbitmap01 (diff)
downloadrtems-35c58a566205e429b3b67803d6ad54db974a6d81.tar.bz2
misc fstests: Remove spaces at EOL
Diffstat (limited to 'testsuites/fstests/fsrfsbitmap01')
-rw-r--r--testsuites/fstests/fsrfsbitmap01/fsrfsbitmap01.doc3
-rw-r--r--testsuites/fstests/fsrfsbitmap01/test.c18
2 files changed, 9 insertions, 12 deletions
diff --git a/testsuites/fstests/fsrfsbitmap01/fsrfsbitmap01.doc b/testsuites/fstests/fsrfsbitmap01/fsrfsbitmap01.doc
index 57dcbcb437..c2fd74d61e 100644
--- a/testsuites/fstests/fsrfsbitmap01/fsrfsbitmap01.doc
+++ b/testsuites/fstests/fsrfsbitmap01/fsrfsbitmap01.doc
@@ -1,4 +1,4 @@
-# COPYRIGHT (c) 2012-.
+# COPYRIGHT (c) 2012-.
# Krzysztof Miesowicz krzysztof.miesowicz@gmail.com
#
# The license and distribution terms for this file may be
@@ -21,7 +21,6 @@ directives:
+ rtems_rfs_bitmap_map_set
+ rtems_rfs_bitmap_map_set_all
+ rtems_rfs_bitmap_map_test
-
concepts:
diff --git a/testsuites/fstests/fsrfsbitmap01/test.c b/testsuites/fstests/fsrfsbitmap01/test.c
index f02c8df277..723a0dde1c 100644
--- a/testsuites/fstests/fsrfsbitmap01/test.c
+++ b/testsuites/fstests/fsrfsbitmap01/test.c
@@ -4,7 +4,7 @@
*
* This test is extended version of rtems-rfs-bimaps-ut.c . Most of this code
* was written by Chris Johns in rtems-rfs-bitmaps-ut.c and is copied
- * and pasted here. Rest of this test was written by Krzysztof Miesowicz to
+ * and pasted here. Rest of this test was written by Krzysztof Miesowicz to
* completely cover rtems_rfs_bitmap_* symbols.
*
* The license and distribution terms for this file may be
@@ -191,7 +191,7 @@ rtems_rfs_bitmap_ut_test_bitmap (size_t size)
free (buffer.buffer);
return;
}
-
+
/*
* This is a new bitmap with no bits set. Try and find a bit with a few
* seeds.
@@ -233,7 +233,7 @@ rtems_rfs_bitmap_ut_test_bitmap (size_t size)
if (!rtems_rfs_bitmap_ut_test_range (&control, 7, false, 1, size - 2))
rtems_rfs_exit_on_error (0, !result, &control, buffer.buffer);
-
+
/*
* Set all bits then clear one and find it.
*/
@@ -452,7 +452,7 @@ void nullpointer_test(void){
rtems_rfs_bitmap_bit seed_bit = 0;
int rc;
bool result;
-
+
printf("\n Testing bitmap_map functions with NULL bitmap control " "pointer\n");
/* Invoke all functions with NULL control */
rc = rtems_rfs_bitmap_map_set(control, bit);
@@ -469,10 +469,10 @@ void nullpointer_test(void){
rtems_test_assert(rc>0);
rc = rtems_rfs_bitmap_map_alloc(control, seed_bit, &result, &bit);
rtems_test_assert(!result);
- /*
+ /*
* Invoke map_alloc with not-null pointer to control, but with
* control uninitialized. It is to cover check in rtems_rfs_bitmap_load_map.
- * We can't check directly if it goes this path, but we will see this in
+ * We can't check directly if it goes this path, but we will see this in
* coverage
*/
rc = rtems_rfs_bitmap_map_set(&notnullcontrol, bit);
@@ -492,7 +492,7 @@ void open_failure(void){
printf("\n Allocate most of memory - attempt to fail while open bitmap - expect ENOMEM\n" );
void *opaque;
static const uintptr_t location_size [] = {
- sizeof(rtems_filesystem_global_location_t)
+ sizeof(rtems_filesystem_global_location_t)
};
size_t size = location_size[0]*rtems_rfs_bitmap_search_element_bits();
@@ -526,12 +526,10 @@ void open_failure(void){
void test(void){
puts("\n START of RFS Bitmap Unit Test");
-
+
rtems_rfs_bitmap_unit_test();
nullpointer_test();
open_failure();
puts("\n END of RFS Bitmap Unit Test");
}
-
-