From d80b196e4c758df18286663fca3eebc0d1add122 Mon Sep 17 00:00:00 2001 From: Ralf Corsepius Date: Mon, 17 Oct 2011 09:53:17 +0000 Subject: =?UTF-8?q?2011-10-17=09Ralf=20Cors=C3=A9pius=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * psxhdrs/sched01.c, psxhdrs/sched02.c, psxhdrs/sched03.c, psxhdrs/sched04.c, psxhdrs/sched05.c, psxhdrs/sched06.c, psxhdrs/sched07.c, psxhdrs/sched08.c: Let test() return values (avoid warnings). --- testsuites/psxtests/ChangeLog | 7 +++++++ testsuites/psxtests/psxhdrs/sched01.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched02.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched03.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched04.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched05.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched06.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched07.c | 6 ++++-- testsuites/psxtests/psxhdrs/sched08.c | 6 ++++-- 9 files changed, 39 insertions(+), 16 deletions(-) diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog index f28b7e795e..8b036f91ea 100644 --- a/testsuites/psxtests/ChangeLog +++ b/testsuites/psxtests/ChangeLog @@ -1,3 +1,10 @@ +2011-10-17 Ralf Corsépius + + * psxhdrs/sched01.c, psxhdrs/sched02.c, psxhdrs/sched03.c, + psxhdrs/sched04.c, psxhdrs/sched05.c, psxhdrs/sched06.c, + psxhdrs/sched07.c, psxhdrs/sched08.c: + Let test() return values (avoid warnings). + 2011-10-17 Ralf Corsépius * psxhdrs/signal01.c, psxhdrs/signal02.c, psxhdrs/signal03.c, diff --git a/testsuites/psxtests/psxhdrs/sched01.c b/testsuites/psxtests/psxhdrs/sched01.c index 3765697c77..e5e9e3e75f 100644 --- a/testsuites/psxtests/psxhdrs/sched01.c +++ b/testsuites/psxtests/psxhdrs/sched01.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_setparam" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pid_t pid; struct sched_param param; @@ -46,4 +46,6 @@ void test( void ) #endif result = sched_setparam( pid, ¶m ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched02.c b/testsuites/psxtests/psxhdrs/sched02.c index 5c6af17b18..d4fb475f8b 100644 --- a/testsuites/psxtests/psxhdrs/sched02.c +++ b/testsuites/psxtests/psxhdrs/sched02.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_getparam" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pid_t pid; struct sched_param param; @@ -33,4 +33,6 @@ void test( void ) pid = 0; result = sched_getparam( pid, ¶m ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched03.c b/testsuites/psxtests/psxhdrs/sched03.c index 6f23501b65..fa7d19f878 100644 --- a/testsuites/psxtests/psxhdrs/sched03.c +++ b/testsuites/psxtests/psxhdrs/sched03.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_setscheduler" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pid_t pid; int policy; @@ -54,4 +54,6 @@ void test( void ) #endif result = sched_setscheduler( pid, policy, ¶m ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched04.c b/testsuites/psxtests/psxhdrs/sched04.c index 4f81ef44fd..704b83d884 100644 --- a/testsuites/psxtests/psxhdrs/sched04.c +++ b/testsuites/psxtests/psxhdrs/sched04.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_getscheduler" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pid_t pid; int result; @@ -32,4 +32,6 @@ void test( void ) pid = 0; result = sched_getscheduler( pid ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched05.c b/testsuites/psxtests/psxhdrs/sched05.c index 8b54d42c68..ca531d7e62 100644 --- a/testsuites/psxtests/psxhdrs/sched05.c +++ b/testsuites/psxtests/psxhdrs/sched05.c @@ -22,11 +22,13 @@ #error "rtems is supposed to have sched_yield" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { int result; result = sched_yield(); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched06.c b/testsuites/psxtests/psxhdrs/sched06.c index dc18a6391d..f0cb9b4d52 100644 --- a/testsuites/psxtests/psxhdrs/sched06.c +++ b/testsuites/psxtests/psxhdrs/sched06.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_get_priority_max" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { int policy; int result; @@ -37,4 +37,6 @@ void test( void ) #endif result = sched_get_priority_max( policy ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched07.c b/testsuites/psxtests/psxhdrs/sched07.c index 462fecf7f1..3976816079 100644 --- a/testsuites/psxtests/psxhdrs/sched07.c +++ b/testsuites/psxtests/psxhdrs/sched07.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_get_priority_min" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { int policy; int result; @@ -37,4 +37,6 @@ void test( void ) #endif result = sched_get_priority_min( policy ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/sched08.c b/testsuites/psxtests/psxhdrs/sched08.c index 905728010a..da0af8ddc7 100644 --- a/testsuites/psxtests/psxhdrs/sched08.c +++ b/testsuites/psxtests/psxhdrs/sched08.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have sched_rr_get_interval" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { pid_t pid; struct timespec interval; @@ -33,4 +33,6 @@ void test( void ) pid = 0; result = sched_rr_get_interval( pid, &interval ); + + return result; } -- cgit v1.2.3