summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-17 11:36:23 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-17 11:36:23 +0000
commit9620b6189f44e64c7ba089c49c191b1310aab0db (patch)
treeed445890266d11fbfbd66e960fed45e45bd06eb2 /testsuites
parent2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-9620b6189f44e64c7ba089c49c191b1310aab0db.tar.bz2
2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/cond01.c, psxhdrs/cond02.c, psxhdrs/cond03.c, psxhdrs/cond04.c, psxhdrs/cond05.c, psxhdrs/cond06.c, psxhdrs/cond07.c, psxhdrs/cond08.c, psxhdrs/cond09.c, psxhdrs/cond10.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog7
-rw-r--r--testsuites/psxtests/psxhdrs/cond01.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond02.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond03.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond04.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond05.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond06.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond07.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond08.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond09.c6
-rw-r--r--testsuites/psxtests/psxhdrs/cond10.c6
11 files changed, 47 insertions, 20 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index fb6434c742..c9aecc0b13 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,5 +1,12 @@
2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * psxhdrs/cond01.c, psxhdrs/cond02.c, psxhdrs/cond03.c,
+ psxhdrs/cond04.c, psxhdrs/cond05.c, psxhdrs/cond06.c,
+ psxhdrs/cond07.c, psxhdrs/cond08.c, psxhdrs/cond09.c,
+ psxhdrs/cond10.c: Let test() return values (avoid warnings).
+
+2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
+
* psxhdrs/mutex01.c, psxhdrs/mutex02.c, psxhdrs/mutex03.c,
psxhdrs/mutex04.c, psxhdrs/mutex05.c, psxhdrs/mutex06.c,
psxhdrs/mutex07.c, psxhdrs/mutex08.c, psxhdrs/mutex09.c,
diff --git a/testsuites/psxtests/psxhdrs/cond01.c b/testsuites/psxtests/psxhdrs/cond01.c
index 4adc7d53d6..9ef827e287 100644
--- a/testsuites/psxtests/psxhdrs/cond01.c
+++ b/testsuites/psxtests/psxhdrs/cond01.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_condattr_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int result;
result = pthread_condattr_init( &attribute );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond02.c b/testsuites/psxtests/psxhdrs/cond02.c
index e36384e0d4..17eea9b148 100644
--- a/testsuites/psxtests/psxhdrs/cond02.c
+++ b/testsuites/psxtests/psxhdrs/cond02.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_condattr_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int result;
result = pthread_condattr_destroy( &attribute );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond03.c b/testsuites/psxtests/psxhdrs/cond03.c
index dd36af21a2..05b0b01488 100644
--- a/testsuites/psxtests/psxhdrs/cond03.c
+++ b/testsuites/psxtests/psxhdrs/cond03.c
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_cond_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_condattr_t attribute;
int result;
result = pthread_cond_init( &cond, &attribute );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond04.c b/testsuites/psxtests/psxhdrs/cond04.c
index 80919a47a2..be848b31c7 100644
--- a/testsuites/psxtests/psxhdrs/cond04.c
+++ b/testsuites/psxtests/psxhdrs/cond04.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_cond_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_destroy( &cond );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond05.c b/testsuites/psxtests/psxhdrs/cond05.c
index d5d5fe7e3a..29d55184ed 100644
--- a/testsuites/psxtests/psxhdrs/cond05.c
+++ b/testsuites/psxtests/psxhdrs/cond05.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_cond_signal"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_signal( &cond );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond06.c b/testsuites/psxtests/psxhdrs/cond06.c
index b13697b252..6ed1bc5a8c 100644
--- a/testsuites/psxtests/psxhdrs/cond06.c
+++ b/testsuites/psxtests/psxhdrs/cond06.c
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_cond_wait"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
int result;
result = pthread_cond_wait( &cond, &mutex );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond07.c b/testsuites/psxtests/psxhdrs/cond07.c
index f91c82a02c..01d00960e0 100644
--- a/testsuites/psxtests/psxhdrs/cond07.c
+++ b/testsuites/psxtests/psxhdrs/cond07.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_cond_timedwait"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
@@ -32,4 +32,6 @@ void test( void )
int result;
result = pthread_cond_timedwait( &cond, &mutex, &abstime );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond08.c b/testsuites/psxtests/psxhdrs/cond08.c
index 14cdba340b..a1267e4a33 100644
--- a/testsuites/psxtests/psxhdrs/cond08.c
+++ b/testsuites/psxtests/psxhdrs/cond08.c
@@ -25,13 +25,15 @@
#error "rtems is supposed to have pthread_condattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int pshared;
int result;
result = pthread_condattr_getpshared( &attribute, &pshared );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond09.c b/testsuites/psxtests/psxhdrs/cond09.c
index 688cb93daa..380af38d07 100644
--- a/testsuites/psxtests/psxhdrs/cond09.c
+++ b/testsuites/psxtests/psxhdrs/cond09.c
@@ -25,9 +25,9 @@
#error "rtems is supposed to have pthread_condattr_setpshared"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_condattr_t attribute;
int pshared;
@@ -37,4 +37,6 @@ void test( void )
pshared = PTHREAD_PROCESS_PRIVATE;
result = pthread_condattr_setpshared( &attribute, pshared );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/cond10.c b/testsuites/psxtests/psxhdrs/cond10.c
index 39da4b7d1d..4d07f16f29 100644
--- a/testsuites/psxtests/psxhdrs/cond10.c
+++ b/testsuites/psxtests/psxhdrs/cond10.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_cond_broadcast"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_cond_t cond = PTHREAD_COND_INITIALIZER;
int result;
result = pthread_cond_broadcast( &cond );
+
+ return result;
}