[rtems commit] psxhdrs: Remove test of pthread_attr_[gs]et_cputime

Joel Sherril joel at rtems.org
Thu Feb 12 22:18:32 UTC 2015


Module:    rtems
Branch:    master
Commit:    86076f3f12237ee4106ced4667aea3bf1a0dc1e3
Changeset: http://git.rtems.org/rtems/commit/?id=86076f3f12237ee4106ced4667aea3bf1a0dc1e3

Author:    Joel Sherrill <joel.sherrill at oarcorp.com>
Date:      Wed Feb 11 13:31:30 2015 -0600

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

---

 testsuites/psxtests/psxhdrs/Makefile.am |  2 +-
 testsuites/psxtests/psxhdrs/pthread35.c | 43 ---------------------------------
 testsuites/psxtests/psxhdrs/pthread36.c | 40 ------------------------------
 3 files changed, 1 insertion(+), 84 deletions(-)

diff --git a/testsuites/psxtests/psxhdrs/Makefile.am b/testsuites/psxtests/psxhdrs/Makefile.am
index 819cd64..6b0d5d6 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 679f315..0000000
--- 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 ea85ebd..0000000
--- 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;
-}




More information about the vc mailing list