summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-12 04:19:11 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-12 04:19:11 +0000
commit077184fd502cafcd16156ba8d5028f8115e0fbd4 (patch)
treecf500b99c3360dc1eb6117c4132ef979a56379dd /testsuites
parent2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-077184fd502cafcd16156ba8d5028f8115e0fbd4.tar.bz2
2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/time01.c, psxhdrs/time02.c, psxhdrs/time03.c, psxhdrs/time04.c, psxhdrs/time05.c, psxhdrs/time06.c, psxhdrs/time07.c, psxhdrs/time08.c, psxhdrs/time09.c, psxhdrs/time10.c, psxhdrs/time11.c, psxhdrs/time12.c, psxhdrs/time13.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog5
-rw-r--r--testsuites/psxtests/psxhdrs/time01.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time02.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time03.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time04.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time05.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time06.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time07.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time08.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time09.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time10.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time11.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time12.c6
-rw-r--r--testsuites/psxtests/psxhdrs/time13.c6
14 files changed, 57 insertions, 26 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index 5332fcbd4f..eb205660e5 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,5 +1,10 @@
2011-10-12 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * psxhdrs/time01.c, psxhdrs/time02.c, psxhdrs/time03.c,
+ psxhdrs/time04.c, psxhdrs/time05.c, psxhdrs/time06.c,
+ psxhdrs/time07.c, psxhdrs/time08.c, psxhdrs/time09.c,
+ psxhdrs/time10.c, psxhdrs/time11.c, psxhdrs/time12.c,
+ psxhdrs/time13.c: Let test() return values (avoid warnings).
* 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).
diff --git a/testsuites/psxtests/psxhdrs/time01.c b/testsuites/psxtests/psxhdrs/time01.c
index 221089374e..e3a0bd7177 100644
--- a/testsuites/psxtests/psxhdrs/time01.c
+++ b/testsuites/psxtests/psxhdrs/time01.c
@@ -18,11 +18,13 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
clock_t clock_ticks;
clock_ticks = clock();
+
+ return (clock_ticks != -1);
}
diff --git a/testsuites/psxtests/psxhdrs/time02.c b/testsuites/psxtests/psxhdrs/time02.c
index 768e2a547e..e4cc08f94c 100644
--- a/testsuites/psxtests/psxhdrs/time02.c
+++ b/testsuites/psxtests/psxhdrs/time02.c
@@ -18,9 +18,9 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
time_t time1;
time_t time2;
@@ -30,4 +30,6 @@ void test( void )
time2 = 0;
difference = difftime( time1, time2 );
+
+ return (difference != 0.0);
}
diff --git a/testsuites/psxtests/psxhdrs/time03.c b/testsuites/psxtests/psxhdrs/time03.c
index 969c115a9e..a3786132f1 100644
--- a/testsuites/psxtests/psxhdrs/time03.c
+++ b/testsuites/psxtests/psxhdrs/time03.c
@@ -18,9 +18,9 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
struct tm timestruct;
time_t time_encoded;
@@ -36,4 +36,6 @@ void test( void )
timestruct.tm_isdst = 0;
time_encoded = mktime( &timestruct );
+
+ return (time_encoded != -1);
}
diff --git a/testsuites/psxtests/psxhdrs/time04.c b/testsuites/psxtests/psxhdrs/time04.c
index 6d3a7294de..9d809718ce 100644
--- a/testsuites/psxtests/psxhdrs/time04.c
+++ b/testsuites/psxtests/psxhdrs/time04.c
@@ -18,11 +18,13 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
time_t new_time;
new_time = time( &new_time );
+
+ return (new_time != -1);
}
diff --git a/testsuites/psxtests/psxhdrs/time05.c b/testsuites/psxtests/psxhdrs/time05.c
index 80963b0a46..3bbcc17543 100644
--- a/testsuites/psxtests/psxhdrs/time05.c
+++ b/testsuites/psxtests/psxhdrs/time05.c
@@ -18,9 +18,9 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
size_t length;
size_t max_length;
@@ -30,4 +30,6 @@ void test( void )
max_length = sizeof( buffer );
length = strftime( buffer, max_length, "%A", &timestruct );
+
+ return (length != 0);
}
diff --git a/testsuites/psxtests/psxhdrs/time06.c b/testsuites/psxtests/psxhdrs/time06.c
index 0f7f1cd38f..77ab5287fd 100644
--- a/testsuites/psxtests/psxhdrs/time06.c
+++ b/testsuites/psxtests/psxhdrs/time06.c
@@ -18,12 +18,14 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
char *buffer;
struct tm timestruct;
buffer = asctime( &timestruct );
+
+ return (buffer != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time07.c b/testsuites/psxtests/psxhdrs/time07.c
index 684d68be5a..e3b5cda403 100644
--- a/testsuites/psxtests/psxhdrs/time07.c
+++ b/testsuites/psxtests/psxhdrs/time07.c
@@ -18,12 +18,14 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
char *buffer;
time_t time;
buffer = ctime( &time );
+
+ return (buffer != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time08.c b/testsuites/psxtests/psxhdrs/time08.c
index e16dab2723..45abf60ad2 100644
--- a/testsuites/psxtests/psxhdrs/time08.c
+++ b/testsuites/psxtests/psxhdrs/time08.c
@@ -18,12 +18,14 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
time_t time;
struct tm *timestruct;
timestruct = gmtime( &time );
+
+ return (timestruct != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time09.c b/testsuites/psxtests/psxhdrs/time09.c
index 0973490d61..d5993e77bf 100644
--- a/testsuites/psxtests/psxhdrs/time09.c
+++ b/testsuites/psxtests/psxhdrs/time09.c
@@ -18,12 +18,14 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
time_t time;
struct tm *timestruct;
timestruct = localtime( &time );
+
+ return (timestruct != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time10.c b/testsuites/psxtests/psxhdrs/time10.c
index 1286120897..7f1a34d1a0 100644
--- a/testsuites/psxtests/psxhdrs/time10.c
+++ b/testsuites/psxtests/psxhdrs/time10.c
@@ -18,13 +18,15 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
char *buffer_pointer;
struct tm timestruct;
char buffer[ 80 ];
buffer_pointer = asctime_r( &timestruct, buffer );
+
+ return (buffer_pointer != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time11.c b/testsuites/psxtests/psxhdrs/time11.c
index 67b5330723..e9c9380b1c 100644
--- a/testsuites/psxtests/psxhdrs/time11.c
+++ b/testsuites/psxtests/psxhdrs/time11.c
@@ -18,13 +18,15 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
char *buffer_pointer;
char buffer[ 80 ];
time_t time;
buffer_pointer = ctime_r( &time, buffer );
+
+ return (buffer_pointer != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time12.c b/testsuites/psxtests/psxhdrs/time12.c
index b6113db0dd..02f436c6a7 100644
--- a/testsuites/psxtests/psxhdrs/time12.c
+++ b/testsuites/psxtests/psxhdrs/time12.c
@@ -18,13 +18,15 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
time_t time;
struct tm *timestruct_pointer;
struct tm timestruct;
timestruct_pointer = gmtime_r( &time, &timestruct );
+
+ return (timestruct_pointer != NULL);
}
diff --git a/testsuites/psxtests/psxhdrs/time13.c b/testsuites/psxtests/psxhdrs/time13.c
index b58f0d1b44..6a3443bc4a 100644
--- a/testsuites/psxtests/psxhdrs/time13.c
+++ b/testsuites/psxtests/psxhdrs/time13.c
@@ -18,13 +18,15 @@
#include <time.h>
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
time_t time;
struct tm *timestruct_pointer;
struct tm timestruct;
timestruct_pointer = localtime_r( &time, &timestruct );
+
+ return (timestruct_pointer != NULL);
}