summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
authorRalf Corsepius <ralf.corsepius@rtems.org>2011-10-17 11:39:04 +0000
committerRalf Corsepius <ralf.corsepius@rtems.org>2011-10-17 11:39:04 +0000
commit6e9634614bbdb7c1cfda1ed59252af85cdfe8913 (patch)
tree93b0f3a24531c0dc9b0aaccbcc13f064c9d1f9c4 /testsuites
parent2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org> (diff)
downloadrtems-6e9634614bbdb7c1cfda1ed59252af85cdfe8913.tar.bz2
2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
* psxhdrs/pthread01.c, psxhdrs/pthread02.c, psxhdrs/pthread03.c, psxhdrs/pthread04.c, psxhdrs/pthread05.c, psxhdrs/pthread06.c, psxhdrs/pthread07.c, psxhdrs/pthread09.c, psxhdrs/pthread10.c, psxhdrs/pthread11.c, psxhdrs/pthread12.c, psxhdrs/pthread13.c, psxhdrs/pthread14.c, psxhdrs/pthread15.c, psxhdrs/pthread16.c, psxhdrs/pthread17.c, psxhdrs/pthread18.c, psxhdrs/pthread19.c, psxhdrs/pthread20.c, psxhdrs/pthread21.c, psxhdrs/pthread22.c, psxhdrs/pthread23.c, psxhdrs/pthread24.c, psxhdrs/pthread25.c, psxhdrs/pthread26.c, psxhdrs/pthread27.c, psxhdrs/pthread28.c, psxhdrs/pthread29.c, psxhdrs/pthread30.c, psxhdrs/pthread34.c, psxhdrs/pthread35.c, psxhdrs/pthread36.c, psxhdrs/pthread37.c, psxhdrs/pthread38.c, psxhdrs/pthread39.c, psxhdrs/pthread40.c: Let test() return values (avoid warnings).
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/psxtests/ChangeLog16
-rw-r--r--testsuites/psxtests/psxhdrs/pthread01.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread02.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread03.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread04.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread05.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread06.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread07.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread09.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread10.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread11.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread12.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread13.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread14.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread15.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread16.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread17.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread18.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread19.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread20.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread21.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread22.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread23.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread24.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread25.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread26.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread27.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread28.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread29.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread30.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread34.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread35.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread36.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread37.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread38.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread39.c6
-rw-r--r--testsuites/psxtests/psxhdrs/pthread40.c6
37 files changed, 160 insertions, 72 deletions
diff --git a/testsuites/psxtests/ChangeLog b/testsuites/psxtests/ChangeLog
index c9aecc0b13..d4906b9ac9 100644
--- a/testsuites/psxtests/ChangeLog
+++ b/testsuites/psxtests/ChangeLog
@@ -1,5 +1,21 @@
2011-10-17 Ralf Corsépius <ralf.corsepius@rtems.org>
+ * psxhdrs/pthread01.c, psxhdrs/pthread02.c, psxhdrs/pthread03.c,
+ psxhdrs/pthread04.c, psxhdrs/pthread05.c, psxhdrs/pthread06.c,
+ psxhdrs/pthread07.c, psxhdrs/pthread09.c, psxhdrs/pthread10.c,
+ psxhdrs/pthread11.c, psxhdrs/pthread12.c, psxhdrs/pthread13.c,
+ psxhdrs/pthread14.c, psxhdrs/pthread15.c, psxhdrs/pthread16.c,
+ psxhdrs/pthread17.c, psxhdrs/pthread18.c, psxhdrs/pthread19.c,
+ psxhdrs/pthread20.c, psxhdrs/pthread21.c, psxhdrs/pthread22.c,
+ psxhdrs/pthread23.c, psxhdrs/pthread24.c, psxhdrs/pthread25.c,
+ psxhdrs/pthread26.c, psxhdrs/pthread27.c, psxhdrs/pthread28.c,
+ psxhdrs/pthread29.c, psxhdrs/pthread30.c, psxhdrs/pthread34.c,
+ psxhdrs/pthread35.c, psxhdrs/pthread36.c, psxhdrs/pthread37.c,
+ psxhdrs/pthread38.c, psxhdrs/pthread39.c, psxhdrs/pthread40.c:
+ Let test() return values (avoid warnings).
+
+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,
diff --git a/testsuites/psxtests/psxhdrs/pthread01.c b/testsuites/psxtests/psxhdrs/pthread01.c
index b1af68a9e9..dba38e772f 100644
--- a/testsuites/psxtests/psxhdrs/pthread01.c
+++ b/testsuites/psxtests/psxhdrs/pthread01.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_attr_init"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int result;
result = pthread_attr_init( &attribute );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread02.c b/testsuites/psxtests/psxhdrs/pthread02.c
index 7d29690df2..369d3695ba 100644
--- a/testsuites/psxtests/psxhdrs/pthread02.c
+++ b/testsuites/psxtests/psxhdrs/pthread02.c
@@ -22,12 +22,14 @@
#error "rtems is supposed to have pthread_attr_destroy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int result;
result = pthread_attr_destroy( &attribute );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread03.c b/testsuites/psxtests/psxhdrs/pthread03.c
index be110bcb64..8312666d7d 100644
--- a/testsuites/psxtests/psxhdrs/pthread03.c
+++ b/testsuites/psxtests/psxhdrs/pthread03.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_attr_setdetachstate"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int state;
@@ -34,4 +34,6 @@ void test( void )
state = PTHREAD_CREATE_JOINABLE;
result = pthread_attr_setdetachstate( &attribute, state );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread04.c b/testsuites/psxtests/psxhdrs/pthread04.c
index 74b812e061..a3ebc8496a 100644
--- a/testsuites/psxtests/psxhdrs/pthread04.c
+++ b/testsuites/psxtests/psxhdrs/pthread04.c
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_attr_getdetachstate"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
int state;
int result;
result = pthread_attr_getdetachstate( &attribute, &state );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread05.c b/testsuites/psxtests/psxhdrs/pthread05.c
index d3c8695961..2bc3854c19 100644
--- a/testsuites/psxtests/psxhdrs/pthread05.c
+++ b/testsuites/psxtests/psxhdrs/pthread05.c
@@ -27,9 +27,9 @@
#error "rtems is supposed to have pthread_setstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
@@ -38,4 +38,6 @@ void test( void )
size = PTHREAD_STACK_MIN;
result = pthread_attr_setstacksize( &attribute, size );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread06.c b/testsuites/psxtests/psxhdrs/pthread06.c
index b354da6085..adfc8338e7 100644
--- a/testsuites/psxtests/psxhdrs/pthread06.c
+++ b/testsuites/psxtests/psxhdrs/pthread06.c
@@ -26,13 +26,15 @@
#error "rtems is supposed to have pthread_getstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
int result;
result = pthread_attr_getstacksize( &attribute, &size );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread07.c b/testsuites/psxtests/psxhdrs/pthread07.c
index d1e1f06ef5..bf5e964e6a 100644
--- a/testsuites/psxtests/psxhdrs/pthread07.c
+++ b/testsuites/psxtests/psxhdrs/pthread07.c
@@ -22,7 +22,7 @@
#error "rtems is supposed to have pthread_create"
#endif
-void test( void );
+int test( void );
void *test_task( void * arg );
void *test_task(
@@ -34,7 +34,7 @@ void *test_task(
return NULL;
}
-void test( void )
+int test( void )
{
pthread_t thread;
pthread_attr_t attribute;
@@ -42,4 +42,6 @@ void test( void )
int result;
result = pthread_create( &thread, &attribute, test_task, arg );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread09.c b/testsuites/psxtests/psxhdrs/pthread09.c
index 8e0b910f36..a4a88326e4 100644
--- a/testsuites/psxtests/psxhdrs/pthread09.c
+++ b/testsuites/psxtests/psxhdrs/pthread09.c
@@ -22,11 +22,13 @@
#error "rtems is supposed to have pthread_self"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t self;
self = pthread_self();
+
+ return ( self != 0 );
}
diff --git a/testsuites/psxtests/psxhdrs/pthread10.c b/testsuites/psxtests/psxhdrs/pthread10.c
index 618d237b89..bb751afcc5 100644
--- a/testsuites/psxtests/psxhdrs/pthread10.c
+++ b/testsuites/psxtests/psxhdrs/pthread10.c
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_equal"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t id_1 = 0;
pthread_t id_2 = 0;
int result;
result = pthread_equal( id_1, id_2 );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread11.c b/testsuites/psxtests/psxhdrs/pthread11.c
index 2c68b5c785..822eef0cc3 100644
--- a/testsuites/psxtests/psxhdrs/pthread11.c
+++ b/testsuites/psxtests/psxhdrs/pthread11.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_setschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
int policy;
@@ -54,4 +54,6 @@ void test( void )
#endif
result = pthread_setschedparam( thread, policy, &param );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread12.c b/testsuites/psxtests/psxhdrs/pthread12.c
index bc40901d86..03e95f98cc 100644
--- a/testsuites/psxtests/psxhdrs/pthread12.c
+++ b/testsuites/psxtests/psxhdrs/pthread12.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_getschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
int policy;
@@ -34,4 +34,6 @@ void test( void )
thread = 0;
result = pthread_getschedparam( thread, &policy, &param );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread13.c b/testsuites/psxtests/psxhdrs/pthread13.c
index 96f80fdceb..d725ef5c8e 100644
--- a/testsuites/psxtests/psxhdrs/pthread13.c
+++ b/testsuites/psxtests/psxhdrs/pthread13.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_attr_setscope"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int contentionscope;
@@ -34,4 +34,6 @@ void test( void )
contentionscope = PTHREAD_SCOPE_PROCESS;
result = pthread_attr_setscope( &attr, contentionscope );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread14.c b/testsuites/psxtests/psxhdrs/pthread14.c
index 5fb698c5b7..20f86b0171 100644
--- a/testsuites/psxtests/psxhdrs/pthread14.c
+++ b/testsuites/psxtests/psxhdrs/pthread14.c
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getscope"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int contentionscope;
int result;
result = pthread_attr_getscope( &attr, &contentionscope );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread15.c b/testsuites/psxtests/psxhdrs/pthread15.c
index 7603b25368..3f82d1b87b 100644
--- a/testsuites/psxtests/psxhdrs/pthread15.c
+++ b/testsuites/psxtests/psxhdrs/pthread15.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_attr_setinheritsched"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int inheritsched;
@@ -34,4 +34,6 @@ void test( void )
inheritsched = PTHREAD_EXPLICIT_SCHED;
result = pthread_attr_setinheritsched( &attr, inheritsched );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread16.c b/testsuites/psxtests/psxhdrs/pthread16.c
index 333f342074..c2f0bf92bf 100644
--- a/testsuites/psxtests/psxhdrs/pthread16.c
+++ b/testsuites/psxtests/psxhdrs/pthread16.c
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getinheritsched"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int inheritsched;
int result;
result = pthread_attr_getinheritsched( &attr, &inheritsched );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread17.c b/testsuites/psxtests/psxhdrs/pthread17.c
index df93267e31..eff9e96055 100644
--- a/testsuites/psxtests/psxhdrs/pthread17.c
+++ b/testsuites/psxtests/psxhdrs/pthread17.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_attr_setschedpolicy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int policy;
@@ -38,4 +38,6 @@ void test( void )
#endif
result = pthread_attr_setschedpolicy( &attr, policy );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread18.c b/testsuites/psxtests/psxhdrs/pthread18.c
index 13020ebe05..d0bc614e80 100644
--- a/testsuites/psxtests/psxhdrs/pthread18.c
+++ b/testsuites/psxtests/psxhdrs/pthread18.c
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getschedpolicy"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int policy;
int result;
result = pthread_attr_getschedpolicy( &attr, &policy );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread19.c b/testsuites/psxtests/psxhdrs/pthread19.c
index 3b3603b5ee..7301eb6397 100644
--- a/testsuites/psxtests/psxhdrs/pthread19.c
+++ b/testsuites/psxtests/psxhdrs/pthread19.c
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_setschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
struct sched_param param;
int result;
result = pthread_attr_setschedparam( &attr, &param );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread20.c b/testsuites/psxtests/psxhdrs/pthread20.c
index a916e4bafc..84dce3335d 100644
--- a/testsuites/psxtests/psxhdrs/pthread20.c
+++ b/testsuites/psxtests/psxhdrs/pthread20.c
@@ -22,13 +22,15 @@
#error "RTEMS is supposed to have pthread_attr_getschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
struct sched_param param;
int result;
result = pthread_attr_getschedparam( &attr, &param );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread21.c b/testsuites/psxtests/psxhdrs/pthread21.c
index e33150cb68..1ba91a9f1c 100644
--- a/testsuites/psxtests/psxhdrs/pthread21.c
+++ b/testsuites/psxtests/psxhdrs/pthread21.c
@@ -22,13 +22,15 @@
#error "rtems is supposed to have pthread_detach"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
int result;
thread = 0;
result = pthread_detach( thread );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread22.c b/testsuites/psxtests/psxhdrs/pthread22.c
index 1a4ae75c68..d530c204c8 100644
--- a/testsuites/psxtests/psxhdrs/pthread22.c
+++ b/testsuites/psxtests/psxhdrs/pthread22.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_setschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread = 0;
int policy;
@@ -52,4 +52,6 @@ void test( void )
#endif
result = pthread_setschedparam( thread, policy, &param );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread23.c b/testsuites/psxtests/psxhdrs/pthread23.c
index 9a3fde4ca4..a2f7f87015 100644
--- a/testsuites/psxtests/psxhdrs/pthread23.c
+++ b/testsuites/psxtests/psxhdrs/pthread23.c
@@ -22,9 +22,9 @@
#error "RTEMS is supposed to have pthread_getschedparam"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread = 0;
int policy;
@@ -32,4 +32,6 @@ void test( void )
int result;
result = pthread_getschedparam( thread, &policy, &param );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread24.c b/testsuites/psxtests/psxhdrs/pthread24.c
index 8004be6c64..0e332a8ceb 100644
--- a/testsuites/psxtests/psxhdrs/pthread24.c
+++ b/testsuites/psxtests/psxhdrs/pthread24.c
@@ -27,9 +27,9 @@
#error "rtems is supposed to have pthread_setstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -38,4 +38,6 @@ void test( void )
stackaddr = NULL;
result = pthread_attr_setstackaddr( &attribute, stackaddr );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread25.c b/testsuites/psxtests/psxhdrs/pthread25.c
index 3b0908b106..bb0a69278d 100644
--- a/testsuites/psxtests/psxhdrs/pthread25.c
+++ b/testsuites/psxtests/psxhdrs/pthread25.c
@@ -27,13 +27,15 @@
#error "rtems is supposed to have pthread_getstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
int result;
result = pthread_attr_getstackaddr( &attribute, &stackaddr );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread26.c b/testsuites/psxtests/psxhdrs/pthread26.c
index 350eaf64e5..a13400a52b 100644
--- a/testsuites/psxtests/psxhdrs/pthread26.c
+++ b/testsuites/psxtests/psxhdrs/pthread26.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_join"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
void *value_ptr;
@@ -33,4 +33,6 @@ void test( void )
thread = 0;
result = pthread_join( thread, &value_ptr );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread27.c b/testsuites/psxtests/psxhdrs/pthread27.c
index a670557a70..9c38e0ffef 100644
--- a/testsuites/psxtests/psxhdrs/pthread27.c
+++ b/testsuites/psxtests/psxhdrs/pthread27.c
@@ -22,17 +22,19 @@
#error "rtems is supposed to have pthread_once"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
pthread_once_t once_control = PTHREAD_ONCE_INIT;
int result;
result = pthread_once( &once_control, init_routine );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread28.c b/testsuites/psxtests/psxhdrs/pthread28.c
index c269136d9f..cfea41bed7 100644
--- a/testsuites/psxtests/psxhdrs/pthread28.c
+++ b/testsuites/psxtests/psxhdrs/pthread28.c
@@ -22,18 +22,20 @@
#error "rtems is supposed to have pthread_cancel"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
pthread_t thread;
int result;
thread = 0;
result = pthread_cancel( thread );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread29.c b/testsuites/psxtests/psxhdrs/pthread29.c
index e642f8bf75..69be2976b2 100644
--- a/testsuites/psxtests/psxhdrs/pthread29.c
+++ b/testsuites/psxtests/psxhdrs/pthread29.c
@@ -22,14 +22,14 @@
#error "rtems is supposed to have pthread_setcancelstate"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
int state;
int oldstate;
@@ -39,4 +39,6 @@ void test( void )
state = PTHREAD_CANCEL_DISABLE;
result = pthread_setcancelstate( state, &oldstate );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread30.c b/testsuites/psxtests/psxhdrs/pthread30.c
index 4c082c4e51..6902a2934f 100644
--- a/testsuites/psxtests/psxhdrs/pthread30.c
+++ b/testsuites/psxtests/psxhdrs/pthread30.c
@@ -22,14 +22,14 @@
#error "rtems is supposed to have pthread_setcanceltype"
#endif
-void test( void );
+int test( void );
void init_routine( void );
void init_routine( void )
{
}
-void test( void )
+int test( void )
{
int type;
int oldtype;
@@ -39,4 +39,6 @@ void test( void )
type = PTHREAD_CANCEL_ASYNCHRONOUS;
result = pthread_setcanceltype( type, &oldtype );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread34.c b/testsuites/psxtests/psxhdrs/pthread34.c
index df306cd8fa..3227e2fa41 100644
--- a/testsuites/psxtests/psxhdrs/pthread34.c
+++ b/testsuites/psxtests/psxhdrs/pthread34.c
@@ -22,9 +22,9 @@
#error "rtems is supposed to have pthread_getcpuclockid"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_t thread;
clockid_t clock_id;
@@ -33,4 +33,6 @@ void test( void )
thread = 0;
result = pthread_getcpuclockid( thread, &clock_id );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread35.c b/testsuites/psxtests/psxhdrs/pthread35.c
index 5b2f74f56d..66309f80b6 100644
--- a/testsuites/psxtests/psxhdrs/pthread35.c
+++ b/testsuites/psxtests/psxhdrs/pthread35.c
@@ -28,9 +28,9 @@ extern int pthread_attr_setcputime(
#error "rtems is supposed to have pthread_attr_setcputime"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int clock_allowed;
@@ -40,4 +40,6 @@ void test( void )
clock_allowed = CLOCK_DISALLOWED;
result = pthread_attr_setcputime( &attr, clock_allowed );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread36.c b/testsuites/psxtests/psxhdrs/pthread36.c
index ba4433a418..5bda0b5e10 100644
--- a/testsuites/psxtests/psxhdrs/pthread36.c
+++ b/testsuites/psxtests/psxhdrs/pthread36.c
@@ -28,13 +28,15 @@ extern int pthread_attr_getcputime(
#error "rtems is supposed to have pthread_attr_getcputime"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attr;
int clock_allowed;
int result;
result = pthread_attr_getcputime( &attr, &clock_allowed );
+
+ return result;
}
diff --git a/testsuites/psxtests/psxhdrs/pthread37.c b/testsuites/psxtests/psxhdrs/pthread37.c
index 12e5dadb55..66ed8aa992 100644
--- a/testsuites/psxtests/psxhdrs/pthread37.c
+++ b/testsuites/psxtests/psxhdrs/pthread37.c
@@ -28,9 +28,9 @@
#error "rtems is supposed to have pthread_setstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -41,5 +41,7 @@ void test( void )
stacksize = 1024;
result = pthread_attr_setstack( &attribute, stackaddr, stacksize );
+
+ return result;
}
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread38.c b/testsuites/psxtests/psxhdrs/pthread38.c
index 3be1516763..44c300ac6f 100644
--- a/testsuites/psxtests/psxhdrs/pthread38.c
+++ b/testsuites/psxtests/psxhdrs/pthread38.c
@@ -28,9 +28,9 @@
#error "rtems is supposed to have pthread_getstackaddr"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
void *stackaddr;
@@ -38,5 +38,7 @@ void test( void )
int result;
result = pthread_attr_getstack( &attribute, &stackaddr, &stacksize );
+
+ return result;
}
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread39.c b/testsuites/psxtests/psxhdrs/pthread39.c
index 9abb9687c5..13496203b3 100644
--- a/testsuites/psxtests/psxhdrs/pthread39.c
+++ b/testsuites/psxtests/psxhdrs/pthread39.c
@@ -24,9 +24,9 @@
#error "rtems is supposed to have pthread_setstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
@@ -35,5 +35,7 @@ void test( void )
size = PTHREAD_STACK_MIN;
result = pthread_attr_setguardsize( &attribute, size );
+
+ return result;
}
#endif
diff --git a/testsuites/psxtests/psxhdrs/pthread40.c b/testsuites/psxtests/psxhdrs/pthread40.c
index 6a0dc85a91..f790639c0a 100644
--- a/testsuites/psxtests/psxhdrs/pthread40.c
+++ b/testsuites/psxtests/psxhdrs/pthread40.c
@@ -23,14 +23,16 @@
#error "rtems is supposed to have pthread_getstacksize"
#endif
-void test( void );
+int test( void );
-void test( void )
+int test( void )
{
pthread_attr_t attribute;
size_t size;
int result;
result = pthread_attr_getguardsize( &attribute, &size );
+
+ return result;
}
#endif