Changeset 38cc8d53 in rtems


Ignore:
Timestamp:
Oct 17, 2011, 11:17:11 AM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, 5, master
Children:
9620b618
Parents:
4f609eec
Message:

2011-10-17 Ralf Corsépius <ralf.corsepius@…>

  • 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, psxhdrs/mutex10.c, psxhdrs/mutex11.c, psxhdrs/mutex12.c, psxhdrs/mutex13.c, psxhdrs/mutex14.c, psxhdrs/mutex15.c, psxhdrs/mutex16.c: Let test() return values (avoid warnings).
Location:
testsuites/psxtests
Files:
17 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    r4f609eec r38cc8d53  
     12011-10-17      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * psxhdrs/mutex01.c, psxhdrs/mutex02.c, psxhdrs/mutex03.c,
     4        psxhdrs/mutex04.c, psxhdrs/mutex05.c, psxhdrs/mutex06.c,
     5        psxhdrs/mutex07.c, psxhdrs/mutex08.c, psxhdrs/mutex09.c,
     6        psxhdrs/mutex10.c, psxhdrs/mutex11.c, psxhdrs/mutex12.c,
     7        psxhdrs/mutex13.c, psxhdrs/mutex14.c, psxhdrs/mutex15.c,
     8        psxhdrs/mutex16.c: Let test() return values (avoid warnings).
     9
    1102011-10-17      Ralf Corsépius <ralf.corsepius@rtems.org>
    211
  • testsuites/psxtests/psxhdrs/mutex01.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutexattr_t attribute;
     
    3131
    3232  result = pthread_mutexattr_init( &attribute );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/mutex02.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutexattr_t attribute;
     
    3131
    3232  result = pthread_mutexattr_destroy( &attribute );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/mutex03.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutex_t     mutex = PTHREAD_MUTEX_INITIALIZER;
     
    3232
    3333  result = pthread_mutex_init( &mutex, &attribute );
     34
     35  return result;
    3436}
  • testsuites/psxtests/psxhdrs/mutex04.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutex_t  mutex = PTHREAD_MUTEX_INITIALIZER;
     
    3131
    3232  result = pthread_mutex_destroy( &mutex );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/mutex05.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
     
    3131
    3232  result = pthread_mutex_lock( &mutex );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/mutex06.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
     
    3131
    3232  result = pthread_mutex_unlock( &mutex );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/mutex07.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutexattr_t attribute;
     
    3939
    4040  result = pthread_mutexattr_setprotocol( &attribute, protocol );
     41
     42  return result;
    4143}
  • testsuites/psxtests/psxhdrs/mutex08.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutexattr_t attribute;
     
    3535
    3636  result = pthread_mutexattr_getprioceiling( &attribute, &prioceiling );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/mutex09.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutexattr_t attribute;
     
    3535
    3636  result = pthread_mutexattr_setprioceiling( &attribute, prioceiling );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/mutex10.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutexattr_t attribute;
     
    3535
    3636  result = pthread_mutexattr_getpshared( &attribute, &pshared );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/mutex11.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutexattr_t attribute;
     
    3838
    3939  result = pthread_mutexattr_setpshared( &attribute, pshared );
     40
     41  return result;
    4042}
  • testsuites/psxtests/psxhdrs/mutex12.c

    r4f609eec r38cc8d53  
    2323#endif
    2424
    25 void test( void );
     25int test( void );
    2626
    27 void test( void )
     27int test( void )
    2828{
    2929  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
     
    3131
    3232  result = pthread_mutex_trylock( &mutex );
     33
     34  return result;
    3335}
  • testsuites/psxtests/psxhdrs/mutex13.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutex_t mutex = PTHREAD_MUTEX_INITIALIZER;
     
    3535
    3636  result = pthread_mutex_timedlock( &mutex, &timeout );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/mutex14.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutexattr_t attribute;
     
    3535
    3636  result = pthread_mutexattr_getprotocol( &attribute, &protocol );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/mutex15.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutex_t mutex;
     
    3535
    3636  result = pthread_mutex_getprioceiling( &mutex, &prioceiling );
     37
     38  return result;
    3739}
  • testsuites/psxtests/psxhdrs/mutex16.c

    r4f609eec r38cc8d53  
    2626#endif
    2727
    28 void test( void );
     28int test( void );
    2929
    30 void test( void )
     30int test( void )
    3131{
    3232  pthread_mutex_t mutex;
     
    3838
    3939  result = pthread_mutex_setprioceiling( &mutex, prioceiling, &oldceiling );
     40
     41  return result;
    4042}
Note: See TracChangeset for help on using the changeset viewer.