summaryrefslogtreecommitdiffstats
path: root/testsuites/samples
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 03:33:25 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2009-11-30 03:33:25 +0000
commitb1274bd94c94520ed9402f85c949976d7008093e (patch)
tree6ed7755c34e5fcccbe06ff095017a4399de180ff /testsuites/samples
parentWhitespace removal. (diff)
downloadrtems-b1274bd94c94520ed9402f85c949976d7008093e.tar.bz2
Whitespace removal.
Diffstat (limited to 'testsuites/samples')
-rw-r--r--testsuites/samples/capture/init.c2
-rw-r--r--testsuites/samples/capture/test1.c44
-rw-r--r--testsuites/samples/fileio/init.c10
-rw-r--r--testsuites/samples/minimum/init.c4
-rw-r--r--testsuites/samples/nsecs/init.c6
5 files changed, 33 insertions, 33 deletions
diff --git a/testsuites/samples/capture/init.c b/testsuites/samples/capture/init.c
index bca9f5a95a..fedf29ac91 100644
--- a/testsuites/samples/capture/init.c
+++ b/testsuites/samples/capture/init.c
@@ -55,7 +55,7 @@ rtems_task Init(
rtems_monitor_init (0);
rtems_capture_cli_init (0);
-
+
setup_tasks_to_watch ();
rtems_task_delete (RTEMS_SELF);
diff --git a/testsuites/samples/capture/test1.c b/testsuites/samples/capture/test1.c
index 22ad7c6b6f..a451ee57b0 100644
--- a/testsuites/samples/capture/test1.c
+++ b/testsuites/samples/capture/test1.c
@@ -31,7 +31,7 @@ static volatile int capture_CT1c_deleted;
static void
capture_wait (uint32_t period)
{
- rtems_task_wake_after (RTEMS_MICROSECONDS_TO_TICKS (period * 1000));
+ rtems_task_wake_after (RTEMS_MICROSECONDS_TO_TICKS (period * 1000));
}
/*
@@ -52,7 +52,7 @@ capture_CT1a (rtems_task_argument arg)
sc = rtems_semaphore_obtain (mutex, RTEMS_WAIT, 0);
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL)
fprintf (stdout, "error: CT1a: mutex obtain: %s\n",
rtems_status_text (sc));
@@ -60,12 +60,12 @@ capture_CT1a (rtems_task_argument arg)
sc = rtems_semaphore_release (mutex);
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL)
fprintf (stdout, "error: CT1a: mutex release: %s\n",
rtems_status_text (sc));
capture_CT1a_deleted = 1;
-
+
rtems_task_delete (RTEMS_SELF);
}
@@ -76,7 +76,7 @@ capture_CT1b (rtems_task_argument arg)
while (!capture_CT1c_deleted)
i++;
-
+
capture_CT1b_deleted = 1;
rtems_task_delete (RTEMS_SELF);
@@ -90,7 +90,7 @@ capture_CT1c (rtems_task_argument arg)
sc = rtems_semaphore_obtain (mutex, RTEMS_WAIT, 0);
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL)
fprintf (stdout, "error: CT1c: mutex obtain: %s\n",
rtems_status_text (sc));
@@ -98,12 +98,12 @@ capture_CT1c (rtems_task_argument arg)
sc = rtems_semaphore_release (mutex);
- if (sc != RTEMS_SUCCESSFUL)
+ if (sc != RTEMS_SUCCESSFUL)
fprintf (stdout, "error: CT1c: mutex release: %s\n",
rtems_status_text (sc));
capture_CT1c_deleted = 1;
-
+
rtems_task_delete (RTEMS_SELF);
}
@@ -122,15 +122,15 @@ capture_test_1 (int argc,
capture_CT1a_deleted = 0;
capture_CT1b_deleted = 0;
capture_CT1c_deleted = 0;
-
+
name = rtems_build_name('C', 'T', 'm', '1');
sc = rtems_semaphore_create (name, 1,
- RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
+ RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
RTEMS_INHERIT_PRIORITY,
0, &mutex);
-
- if (sc != RTEMS_SUCCESSFUL)
+
+ if (sc != RTEMS_SUCCESSFUL)
{
fprintf (stdout, "error: Test 1: cannot mutex: %s\n",
rtems_status_text (sc));
@@ -138,13 +138,13 @@ capture_test_1 (int argc,
}
name = rtems_build_name('C', 'T', '1', 'a');
-
+
sc = rtems_task_create (name, 102, 2 * 1024,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_NO_ASR,
&id[0]);
-
- if (sc != RTEMS_SUCCESSFUL)
+
+ if (sc != RTEMS_SUCCESSFUL)
{
fprintf (stdout, "error: Test 1: cannot create CT1a: %s\n",
rtems_status_text (sc));
@@ -166,13 +166,13 @@ capture_test_1 (int argc,
capture_wait (1000);
name = rtems_build_name('C', 'T', '1', 'b');
-
+
sc = rtems_task_create (name, 101, 2 * 1024,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_NO_ASR,
&id[1]);
-
- if (sc != RTEMS_SUCCESSFUL)
+
+ if (sc != RTEMS_SUCCESSFUL)
{
fprintf (stdout, "error: Test 1: cannot create CT1b: %s\n",
rtems_status_text (sc));
@@ -196,13 +196,13 @@ capture_test_1 (int argc,
capture_wait (1000);
name = rtems_build_name('C', 'T', '1', 'c');
-
+
sc = rtems_task_create (name, 100, 2 * 1024,
RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
RTEMS_PREEMPT | RTEMS_TIMESLICE | RTEMS_NO_ASR,
&id[2]);
-
- if (sc != RTEMS_SUCCESSFUL)
+
+ if (sc != RTEMS_SUCCESSFUL)
{
fprintf (stdout, "error: Test 1: cannot create CT1c: %s\n",
rtems_status_text (sc));
@@ -241,7 +241,7 @@ capture_test_1 (int argc,
rtems_task_delete (id[1]);
rtems_task_delete (id[0]);
}
-
+
sc = rtems_semaphore_delete (mutex);
if (sc != RTEMS_SUCCESSFUL)
fprintf (stdout, "error: Test 1: deleting the mutex: %s\n",
diff --git a/testsuites/samples/fileio/init.c b/testsuites/samples/fileio/init.c
index 158d12aeef..b8d1b31433 100644
--- a/testsuites/samples/fileio/init.c
+++ b/testsuites/samples/fileio/init.c
@@ -160,7 +160,7 @@ void fileio_start_shell(void)
);
writeScript(
- "/scripts/js",
+ "/scripts/js",
"#! joel\n"
"\n"
"date\n"
@@ -170,13 +170,13 @@ void fileio_start_shell(void)
);
writeScript(
- "/scripts/j1",
+ "/scripts/j1",
"#! joel -s 20480 -t JESS\n"
"stackuse\n"
);
rtems_shell_write_file(
- "/scripts/j2",
+ "/scripts/j2",
"echo j2 TEST FILE\n"
"echo j2 SHOULD BE non-executable AND\n"
"echo j2 DOES NOT have the magic first line\n"
@@ -701,7 +701,7 @@ Init (rtems_task_argument ignored)
Task_name = rtems_build_name('F','M','N','U');
status = rtems_task_create(
- Task_name, 1, RTEMS_MINIMUM_STACK_SIZE * 2,
+ Task_name, 1, RTEMS_MINIMUM_STACK_SIZE * 2,
RTEMS_DEFAULT_MODES ,
RTEMS_FLOATING_POINT | RTEMS_DEFAULT_ATTRIBUTES, &Task_id
);
@@ -738,7 +738,7 @@ rtems_shell_alias_t Shell_USERECHO_Alias = {
"usercmd", /* command */
"userecho" /* alias */
};
-
+
#define CONFIGURE_SHELL_USER_COMMANDS &Shell_USERCMD_Command
#define CONFIGURE_SHELL_USER_ALIASES &Shell_USERECHO_Alias
diff --git a/testsuites/samples/minimum/init.c b/testsuites/samples/minimum/init.c
index a386750d30..7f25cc9670 100644
--- a/testsuites/samples/minimum/init.c
+++ b/testsuites/samples/minimum/init.c
@@ -1,4 +1,4 @@
-/* Minimum Size Application Initialization
+/* Minimum Size Application Initialization
*
* COPYRIGHT (c) 1989-2008.
* On-Line Applications Research Corporation (OAR).
@@ -20,7 +20,7 @@ rtems_task Init(
/* Real application would call idle loop functionality */
- /* but in this case, just return and fall into a fatal error */
+ /* but in this case, just return and fall into a fatal error */
}
/* configuration information */
diff --git a/testsuites/samples/nsecs/init.c b/testsuites/samples/nsecs/init.c
index fc6d434f56..222423f827 100644
--- a/testsuites/samples/nsecs/init.c
+++ b/testsuites/samples/nsecs/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* Nanoseconds accuracy timestamp test
*/
@@ -29,7 +29,7 @@ char *my_ctime( time_t t )
static char b[32];
ctime_r(&t, b);
b[ strlen(b) - 1] = '\0';
- return b;
+ return b;
}
void subtract_em(
@@ -117,7 +117,7 @@ rtems_task Init(
struct timespec diff;
int j, max = (index * 10000);
rtems_clock_get_uptime( &start );
- for (j=0 ; j<max ; j++ )
+ for (j=0 ; j<max ; j++ )
dummy_function_empty_body_to_force_call();
rtems_clock_get_uptime( &stop );