summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-02-11 13:31:30 -0600
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-02-12 15:23:33 -0600
commit86076f3f12237ee4106ced4667aea3bf1a0dc1e3 (patch)
tree02760d43a754f982d28b48573d788d44c43dad07
parentpsxhdrs: Add tests for <sys/socket.h> API compliance (diff)
downloadrtems-86076f3f12237ee4106ced4667aea3bf1a0dc1e3.tar.bz2
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
-rw-r--r--testsuites/psxtests/psxhdrs/Makefile.am2
-rw-r--r--testsuites/psxtests/psxhdrs/pthread35.c43
-rw-r--r--testsuites/psxtests/psxhdrs/pthread36.c40
3 files changed, 1 insertions, 84 deletions
diff --git a/testsuites/psxtests/psxhdrs/Makefile.am b/testsuites/psxtests/psxhdrs/Makefile.am
index 819cd64510..6b0d5d658d 100644
--- a/testsuites/psxtests/psxhdrs/Makefile.am
+++ b/testsuites/psxtests/psxhdrs/Makefile.am
@@ -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 \
pthread19.c pthread20.c pthread21.c pthread22.c pthread23.c pthread24.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 \
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 \
diff --git a/testsuites/psxtests/psxhdrs/pthread35.c b/testsuites/psxtests/psxhdrs/pthread35.c
deleted file mode 100644
index 679f315cda..0000000000
--- a/testsuites/psxtests/psxhdrs/pthread35.c
+++ /dev/null
@@ -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;
-}
diff --git a/testsuites/psxtests/psxhdrs/pthread36.c b/testsuites/psxtests/psxhdrs/pthread36.c
deleted file mode 100644
index ea85ebd011..0000000000
--- a/testsuites/psxtests/psxhdrs/pthread36.c
+++ /dev/null
@@ -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;
-}