forked from Imagelibrary/rtems
psxhdrs: Remove test of pthread_attr_[gs]et_cputime
These methods are no longer in the tree and the API tests should have been removed. closes 1981
This commit is contained in:
@@ -9,7 +9,7 @@ lib_a_SOURCES = clock01.c clock02.c clock03.c clock04.c clock05.c clock06.c \
|
|||||||
pthread13.c pthread14.c pthread15.c pthread16.c pthread17.c pthread18.c \
|
pthread13.c pthread14.c pthread15.c pthread16.c pthread17.c pthread18.c \
|
||||||
pthread19.c pthread20.c pthread21.c pthread22.c pthread23.c pthread24.c \
|
pthread19.c pthread20.c pthread21.c pthread22.c pthread23.c pthread24.c \
|
||||||
pthread25.c pthread26.c pthread27.c pthread28.c pthread29.c pthread30.c \
|
pthread25.c pthread26.c pthread27.c pthread28.c pthread29.c pthread30.c \
|
||||||
pthread31.c pthread32.c pthread34.c pthread35.c pthread36.c \
|
pthread31.c pthread32.c pthread34.c \
|
||||||
pthread37.c pthread38.c pthread39.c pthread40.c \
|
pthread37.c pthread38.c pthread39.c pthread40.c \
|
||||||
proc01.c proc02.c proc03.c proc04.c proc05.c proc06.c proc07.c proc08.c \
|
proc01.c proc02.c proc03.c proc04.c proc05.c proc06.c proc07.c proc08.c \
|
||||||
proc09.c proc10.c proc11.c proc12.c proc13.c proc14.c sched01.c \
|
proc09.c proc10.c proc11.c proc12.c proc13.c proc14.c sched01.c \
|
||||||
|
|||||||
@@ -1,43 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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.org/license/LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#if !HAVE_DECL_PTHREAD_ATTR_SETCPUTIME
|
|
||||||
extern int pthread_attr_setcputime(
|
|
||||||
pthread_attr_t *attr,
|
|
||||||
int clock_allowed);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _POSIX_THREAD_CPUTIME
|
|
||||||
#error "rtems is supposed to have pthread_attr_setcputime"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int test( void );
|
|
||||||
|
|
||||||
int test( void )
|
|
||||||
{
|
|
||||||
pthread_attr_t attr;
|
|
||||||
int clock_allowed;
|
|
||||||
int result;
|
|
||||||
|
|
||||||
clock_allowed = CLOCK_ALLOWED;
|
|
||||||
clock_allowed = CLOCK_DISALLOWED;
|
|
||||||
|
|
||||||
result = pthread_attr_setcputime( &attr, clock_allowed );
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
@@ -1,40 +0,0 @@
|
|||||||
/*
|
|
||||||
* 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.org/license/LICENSE.
|
|
||||||
*/
|
|
||||||
|
|
||||||
#ifdef HAVE_CONFIG_H
|
|
||||||
#include "config.h"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#include <pthread.h>
|
|
||||||
|
|
||||||
#if !HAVE_DECL_PTHREAD_ATTR_GETCPUTIME
|
|
||||||
extern int pthread_attr_getcputime(
|
|
||||||
pthread_attr_t *attr,
|
|
||||||
int *clock_allowed);
|
|
||||||
#endif
|
|
||||||
|
|
||||||
#ifndef _POSIX_THREAD_CPUTIME
|
|
||||||
#error "rtems is supposed to have pthread_attr_getcputime"
|
|
||||||
#endif
|
|
||||||
|
|
||||||
int test( void );
|
|
||||||
|
|
||||||
int test( void )
|
|
||||||
{
|
|
||||||
pthread_attr_t attr;
|
|
||||||
int clock_allowed;
|
|
||||||
int result;
|
|
||||||
|
|
||||||
result = pthread_attr_getcputime( &attr, &clock_allowed );
|
|
||||||
|
|
||||||
return result;
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user