summaryrefslogtreecommitdiffstats
path: root/testsuites
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
parentNew fstest to cover RFS bitmaps - fsrfsbitmap01 (diff)
downloadrtems-35c58a566205e429b3b67803d6ad54db974a6d81.tar.bz2
misc fstests: Remove spaces at EOL
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/fstests/Makefile.am2
-rw-r--r--testsuites/fstests/fsfpathconf/fsfpathconf.doc3
-rw-r--r--testsuites/fstests/fsfpathconf/test.c9
-rw-r--r--testsuites/fstests/fsfseeko01/init.c2
-rw-r--r--testsuites/fstests/fsrfsbitmap01/fsrfsbitmap01.doc3
-rw-r--r--testsuites/fstests/fsrfsbitmap01/test.c18
6 files changed, 16 insertions, 21 deletions
diff --git a/testsuites/fstests/Makefile.am b/testsuites/fstests/Makefile.am
index 78c5fff30d..386f221e66 100644
--- a/testsuites/fstests/Makefile.am
+++ b/testsuites/fstests/Makefile.am
@@ -1,6 +1,6 @@
ACLOCAL_AMFLAGS = -I ../aclocal
-SUBDIRS =
+SUBDIRS =
SUBDIRS += fsfseeko01
SUBDIRS += fsdosfssync01
SUBDIRS += imfs_fserror
diff --git a/testsuites/fstests/fsfpathconf/fsfpathconf.doc b/testsuites/fstests/fsfpathconf/fsfpathconf.doc
index 92af03b3a7..d364334ff4 100644
--- a/testsuites/fstests/fsfpathconf/fsfpathconf.doc
+++ b/testsuites/fstests/fsfpathconf/fsfpathconf.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
@@ -13,7 +13,6 @@ test set name: fsfpathconf
directives:
+ fpathconf
-
concepts:
diff --git a/testsuites/fstests/fsfpathconf/test.c b/testsuites/fstests/fsfpathconf/test.c
index a375d09a31..7c4eeccb10 100644
--- a/testsuites/fstests/fsfpathconf/test.c
+++ b/testsuites/fstests/fsfpathconf/test.c
@@ -1,7 +1,7 @@
-/*
+/*
* COPYRIGHT (c) 2012 - .
* Krzysztof Miesowicz krzysztof.miesowicz@gmail.com
- *
+ *
* 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.
@@ -23,7 +23,7 @@
#include <rtems/error.h>
#include <ctype.h>
#include <rtems/libcsupport.h>
-
+
#include "fstest.h"
#include "tmacros.h"
@@ -77,7 +77,7 @@ static void fpathconf_test(void){
close(fd);
fd = open("testfile.test", O_WRONLY);
-
+
rv = fpathconf(fd, _PC_LINK_MAX);
}
}
@@ -87,7 +87,6 @@ void test(void){
puts("\n\n*** FPATHCONF TEST ***" );
fpathconf_test();
puts( "\n*** END OF FPATHCONF TEST ***" );
-
}
/* end of file */
diff --git a/testsuites/fstests/fsfseeko01/init.c b/testsuites/fstests/fsfseeko01/init.c
index b6de9a53d2..20797b5840 100644
--- a/testsuites/fstests/fsfseeko01/init.c
+++ b/testsuites/fstests/fsfseeko01/init.c
@@ -32,7 +32,7 @@ static void test(void)
? INT64_MAX
: (sizeof(off_t) == sizeof(int32_t) ? INT32_MAX : 1);
off_t actual_off;
-
+
errno = 0;
file = fopen("file", "w+");
perror("fopen");
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");
}
-
-