Files
rtems/testsuites/psxtests/psxhdrs/pthread19.c
Ralf Corsepius 6e9634614b 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 11:39:04 +00:00

37 lines
767 B
C

/*
* This test file is used to verify that the header files associated with
* invoking this function are correct.
*
* COPYRIGHT (c) 1989-2009.
* On-Line Applications Research Corporation (OAR).
*
* The license and distribution terms for this file may be
* found in the file LICENSE in this distribution or at
* http://www.rtems.com/license/LICENSE.
*
* $Id$
*/
#ifdef HAVE_CONFIG_H
#include "config.h"
#endif
#include <pthread.h>
#ifndef _POSIX_THREAD_PRIORITY_SCHEDULING
#error "RTEMS is supposed to have pthread_attr_setschedparam"
#endif
int test( void );
int test( void )
{
pthread_attr_t attr;
struct sched_param param;
int result;
result = pthread_attr_setschedparam( &attr, &param );
return result;
}