diff options
author | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-12 04:15:32 +0000 |
---|---|---|
committer | Ralf Corsepius <ralf.corsepius@rtems.org> | 2011-10-12 04:15:32 +0000 |
commit | e7edd55890b554ca0db49403153d6d617d3081a8 (patch) | |
tree | 391606acccc0b4c1341b331a6390f878dec217b7 /testsuites/psxtests/psxhdrs | |
parent | 2011-10-11 Ralf Corsépius <ralf.corsepius@rtems.org> (diff) | |
download | rtems-e7edd55890b554ca0db49403153d6d617d3081a8.tar.bz2 |
2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/timer01.c, psxhdrs/timer02.c, psxhdrs/timer03.c,
psxhdrs/timer04.c, psxhdrs/timer05.c, psxhdrs/timer06.c,
psxhdrs/timer07.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites/psxtests/psxhdrs')
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer01.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer02.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer03.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer04.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer05.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer06.c | 6 | ||||
-rw-r--r-- | testsuites/psxtests/psxhdrs/timer07.c | 6 |
7 files changed, 28 insertions, 14 deletions
diff --git a/testsuites/psxtests/psxhdrs/timer01.c b/testsuites/psxtests/psxhdrs/timer01.c index ad5a22f949..38cc0e186a 100644 --- a/testsuites/psxtests/psxhdrs/timer01.c +++ b/testsuites/psxtests/psxhdrs/timer01.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have timer_create" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { clockid_t clock_id = 0; timer_t timerid = 0; @@ -39,4 +39,6 @@ void test( void ) evp.sigev_value.sival_ptr = NULL; result = timer_create( clock_id, &evp, &timerid ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/timer02.c b/testsuites/psxtests/psxhdrs/timer02.c index 3bb9e10e0e..cfb83d8210 100644 --- a/testsuites/psxtests/psxhdrs/timer02.c +++ b/testsuites/psxtests/psxhdrs/timer02.c @@ -22,12 +22,14 @@ #error "rtems is supposed to have timer_delete" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { timer_t timerid = 0; int result; result = timer_delete( timerid ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/timer03.c b/testsuites/psxtests/psxhdrs/timer03.c index 58dc6ce0b2..7a97a1dcfe 100644 --- a/testsuites/psxtests/psxhdrs/timer03.c +++ b/testsuites/psxtests/psxhdrs/timer03.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have timer_settime" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { timer_t timerid = 0; int flags; @@ -41,4 +41,6 @@ void test( void ) flags = CLOCK_REALTIME; result = timer_settime( timerid, flags, &value, &ovalue ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/timer04.c b/testsuites/psxtests/psxhdrs/timer04.c index 0ad6bafe09..050482d374 100644 --- a/testsuites/psxtests/psxhdrs/timer04.c +++ b/testsuites/psxtests/psxhdrs/timer04.c @@ -22,13 +22,15 @@ #error "rtems is supposed to have timer_gettime" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { timer_t timerid = 0; struct itimerspec value; int result; result = timer_gettime( timerid, &value ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/timer05.c b/testsuites/psxtests/psxhdrs/timer05.c index ba30fe7240..47b2613d4d 100644 --- a/testsuites/psxtests/psxhdrs/timer05.c +++ b/testsuites/psxtests/psxhdrs/timer05.c @@ -22,12 +22,14 @@ #error "rtems is supposed to have timer_getoverrun" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { timer_t timerid = 0; int result; result = timer_getoverrun( timerid ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/timer06.c b/testsuites/psxtests/psxhdrs/timer06.c index 0a1af0e597..81ef1d744a 100644 --- a/testsuites/psxtests/psxhdrs/timer06.c +++ b/testsuites/psxtests/psxhdrs/timer06.c @@ -22,9 +22,9 @@ #error "rtems is supposed to have nanosleep" #endif -void test( void ); +int test( void ); -void test( void ) +int test( void ) { struct timespec rqtp; struct timespec rmtp; @@ -33,4 +33,6 @@ void test( void ) rqtp.tv_sec = 0; rqtp.tv_nsec = 0; result = nanosleep( &rqtp, &rmtp ); + + return result; } diff --git a/testsuites/psxtests/psxhdrs/timer07.c b/testsuites/psxtests/psxhdrs/timer07.c index a349e08739..8d283e31c7 100644 --- a/testsuites/psxtests/psxhdrs/timer07.c +++ b/testsuites/psxtests/psxhdrs/timer07.c @@ -18,13 +18,15 @@ #include <unistd.h> -void test( void ); +int test( void ); -void test( void ) +int test( void ) { useconds_t usec; unsigned result; usec = 0; result = usleep( usec ); + + return result; } |