summaryrefslogtreecommitdiffstats
path: root/testsuites/psxtests/psx03
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2004-04-16 09:24:30 +0000
commit1b4f2b305c95a832a259e4c4944f1a0981676eba (patch)
tree1ee56809b12a03ba53d630f5483a48387f72b74a /testsuites/psxtests/psx03
parentRemove stray white spaces. (diff)
downloadrtems-1b4f2b305c95a832a259e4c4944f1a0981676eba.tar.bz2
Remove stray white spaces.
Diffstat (limited to 'testsuites/psxtests/psx03')
-rw-r--r--testsuites/psxtests/psx03/init.c22
-rw-r--r--testsuites/psxtests/psx03/task.c4
2 files changed, 13 insertions, 13 deletions
diff --git a/testsuites/psxtests/psx03/init.c b/testsuites/psxtests/psx03/init.c
index 0a28676296..0b6faa0d15 100644
--- a/testsuites/psxtests/psx03/init.c
+++ b/testsuites/psxtests/psx03/init.c
@@ -1,4 +1,4 @@
-/*
+/*
* COPYRIGHT (c) 1989-1999.
* On-Line Applications Research Corporation (OAR).
*
@@ -61,7 +61,7 @@ void *POSIX_Init(
act.sa_handler = Signal_handler;
act.sa_flags = 0;
-
+
sigaction( SIGUSR1, &act, NULL );
/* initialize signal handler variables */
@@ -70,7 +70,7 @@ void *POSIX_Init(
Signal_occurred = 0;
/*
- * wait on SIGUSR1 for 3 seconds, will timeout
+ * wait on SIGUSR1 for 3 seconds, will timeout
*/
/* initialize the signal set we will wait for to SIGUSR1 */
@@ -88,7 +88,7 @@ void *POSIX_Init(
signo = sigtimedwait( &waitset, &siginfo, &timeout );
assert( signo == -1 );
- if ( errno == EAGAIN )
+ if ( errno == EAGAIN )
puts( "Init: correctly timed out waiting for SIGUSR1." );
else
printf( "sigtimedwait returned wrong errno - %d\n", errno );
@@ -119,10 +119,10 @@ void *POSIX_Init(
assert( !status );
/* signal handler is still installed, waitset is still set for SIGUSR1 */
-
+
timeout.tv_sec = 3;
timeout.tv_nsec = 0;
-
+
puts( "Init: waiting on any signal for 3 seconds." );
signo = sigtimedwait( &waitset, &siginfo, &timeout );
@@ -133,7 +133,7 @@ void *POSIX_Init(
else
printf( "sigtimedwait returned wrong errno - %d\n", errno );
assert( signo == -1 );
-
+
/*
* wait on SIGUSR1 for 3 seconds, Task_2 will send it to us
*/
@@ -146,12 +146,12 @@ void *POSIX_Init(
assert( !status );
/* signal handler is still installed, waitset is still set for SIGUSR1 */
-
+
/* wait on SIGUSR1 for 3 seconds, will receive SIGUSR1 from Task_2 */
-
+
timeout.tv_sec = 3;
timeout.tv_nsec = 0;
-
+
/* just so we can check that these were altered */
siginfo.si_code = -1;
@@ -165,7 +165,7 @@ void *POSIX_Init(
assert( siginfo.si_signo == SIGUSR1 );
assert( siginfo.si_code == SI_USER );
assert( siginfo.si_value.sival_int != -1 ); /* rtems does always set this */
-
+
/* try out a process signal */
empty_line();
diff --git a/testsuites/psxtests/psx03/task.c b/testsuites/psxtests/psx03/task.c
index 6b41659cf3..df3fdaed5d 100644
--- a/testsuites/psxtests/psx03/task.c
+++ b/testsuites/psxtests/psx03/task.c
@@ -49,13 +49,13 @@ void *Task_2(
int status;
/* send SIGUSR1 to Init which is waiting on SIGUSR1 */
-
+
print_current_time( "Task_2: ", "" );
puts( "Task_1: pthread_kill - SIGUSR1 to Init" );
status = pthread_kill( Init_id, SIGUSR1 );
assert( !status );
-
+
pthread_exit( NULL );
/* switch to Init */