Changeset b422aa3f in rtems


Ignore:
Timestamp:
Apr 26, 2018, 2:05:45 PM (15 months ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
master
Children:
397df7a
Parents:
c77cd426
git-author:
Sebastian Huber <sebastian.huber@…> (04/26/18 14:05:45)
git-committer:
Sebastian Huber <sebastian.huber@…> (05/02/18 05:11:03)
Message:

tests: Remove configure feature checks

Update #3409.

Location:
testsuites
Files:
23 edited

Legend:

Unmodified
Added
Removed
  • testsuites/fstests/configure.ac

    rc77cd426 rb422aa3f  
    2727RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
    2828AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
    29 
    30 # but newlib doesn't have sys/mman.h
    31 AC_CHECK_HEADERS([sys/mman.h])
    32 
    33 # FIXME: newlib should supply declaration of pthread_rwlock_unlock()
    34 AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
    35 
    36 # FIXME: newlib should supply declaration of pthread_atfork()
    37 AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
    38 
    39 # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
    40 # Likely an anachronism in RTEMS.
    41 AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
    42 
    43 # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
    44 # Likely an anachronism in RTEMS.
    45 AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
    46 
    47 # FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1
    48 # Likely an anachronism in RTEMS.
    49 AC_CHECK_DECLS([pthread_attr_setcputime],[],[],[[#include <pthread.h>]])
    50 
    51 # Added to pthreads after initial revision.  May not be in toolset
    52 AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
    53 
    54 # Added to pthreads after initial revision.  May not be in toolset
    55 AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
    56 
    57 # Added to pthreads after initial revision.  May not be in toolset
    58 AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
    59 
    60 # Added to pthreads after initial revision.  May not be in toolset
    61 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
    62 
    63 # FIXME: adjtime is a non-standardized BSD/Linux extension
    64 # RTEMS should not rely on adjtime
    65 AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
    66 
    67 # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
    68 # RTEMS provides a stub, despite newlib doesn't have sys/mman.h
    69 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
    70 
    71 # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
    72 # RTEMS provides it, despite newlib doesn't declare it.
    73 AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
    74 
    75 # FIXME: We should get rid of this. It's a cludge.
    76 AC_CHECK_SIZEOF([off_t])
    77 AC_CHECK_SIZEOF([blksize_t])
    78 AC_CHECK_SIZEOF([blkcnt_t])
    7929
    8030# BSP Test configuration
  • testsuites/libtests/configure.ac

    rc77cd426 rb422aa3f  
    4040        AC_MSG_ERROR([pax is missing.])
    4141])
    42 
    43 AC_CHECK_HEADERS([complex.h])
    4442
    4543AM_CONDITIONAL(TARTESTS,test "$as_ln_s" = "ln -s" && test -n "$PAX" && test -n "$GZIP")
  • testsuites/psxtests/configure.ac

    rc77cd426 rb422aa3f  
    3636RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
    3737AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
    38 
    39 # FIXME: IEEE Std 1003.1-2008 mandates sys/mman.h,
    40 # but newlib doesn't have sys/mman.h
    41 AC_CHECK_HEADERS([sys/mman.h])
    42 
    43 # FIXME: newlib should supply declaration of pthread_rwlock_unlock()
    44 AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
    45 
    46 # FIXME: newlib should supply declaration of pthread_atfork()
    47 AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
    48 
    49 # Added to pthreads after initial revision.  May not be in toolset
    50 AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
    51 
    52 # Added to pthreads after initial revision.  May not be in toolset
    53 AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
    54 
    55 # Added to pthreads after initial revision.  May not be in toolset
    56 AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
    57 
    58 # Added to pthreads after initial revision.  May not be in toolset
    59 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
    60 
    61 # Added to newlib pthreads for RTEMS SMP (np), may not be present
    62 AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[
    63   #define _GNU_SOURCE
    64   #include <pthread.h>]])
    65 
    66 # Added to newlib pthreads for RTEMS SMP (np), may not be present
    67 AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[
    68   #define _GNU_SOURCE
    69   #include <pthread.h>]])
    70 
    71 # Added to newlib pthreads for RTEMS SMP (np), may not be present
    72 AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[
    73   #define _GNU_SOURCE
    74   #include <pthread.h>]])
    75 
    76 # Added to newlib pthreads for RTEMS SMP (np), may not be present
    77 AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[
    78   #define _GNU_SOURCE
    79   #include <pthread.h>]])
    80 
    81 # Added to newlib pthreads for RTEMS SMP (np), may not be present
    82 AC_CHECK_DECLS([pthread_getattr_np],[],[],[[
    83   #define _GNU_SOURCE
    84   #include <pthread.h>]])
    85 
    86 # Mandated by POSIX, not declared in some versions of newlib.
    87 AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
    88 
    89 # Mandated by POSIX, not declared in some versions of newlib.
    90 AC_CHECK_DECLS([getrusage],,,[#include sys/resource.h])
    91 
    92 # FIXME: adjtime is a non-standardized BSD/Linux extension
    93 # RTEMS should not rely on adjtime
    94 AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
    95 
    96 # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
    97 # RTEMS provides a stub, despite newlib doesn't have sys/mman.h
    98 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
    99 
    100 # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
    101 # RTEMS provides it, despite newlib doesn't declare it.
    102 AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
    103 
    104 # FIXME: We should get rid of this. It's a cludge.
    105 AC_CHECK_SIZEOF([off_t])
    106 AC_CHECK_SIZEOF([blksize_t])
    107 AC_CHECK_SIZEOF([blkcnt_t])
    108 AC_CHECK_SIZEOF([time_t])
    109 AC_CHECK_SIZEOF([mode_t])
    11038
    11139# BSP Test configuration
  • testsuites/psxtests/psx07/init.c

    rc77cd426 rb422aa3f  
    5757  int                 schedpolicy;
    5858  size_t              stacksize;
    59 #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE
    6059  size_t              guardsize;
    61 #endif
    6260  void               *stackaddr;
    6361  int                 detachstate;
     
    123121  posix_service_failed( status, "pthread_attr_init");
    124122
    125 #if HAVE_DECL_PTHREAD_ATTR_SETSTACKADDR
    126123  attr.stacksize = rtems_configuration_get_work_space_size() * 10;
    127124  puts( "Init - pthread_create - EAGAIN (stacksize too large)" );
    128125  status = pthread_create( &Task_id, &attr, Task_1, NULL );
    129126  fatal_directive_check_status_only( status, EAGAIN, "stacksize too large" );
    130 #endif
    131127
    132128  status = pthread_attr_init( &attr );
     
    365361  empty_line();
    366362
    367 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK
    368363  puts( "Init - pthread_attr_setstack- EINVAL (NULL attr)" );
    369364  status = pthread_attr_setstack( NULL, &stackaddr, 1024 );
     
    381376  status = pthread_attr_setstack( &attr, stackaddr, STACK_MINIMUM_SIZE * 2 );
    382377  posix_service_failed( status, "OK");
    383 #endif
    384 
    385 #if HAVE_DECL_PTHREAD_ATTR_GETSTACK
     378
    386379  puts( "Init - pthread_attr_getstack- EINVAL (NULL attr)" );
    387380  status = pthread_attr_getstack( NULL, &stackaddr, &stacksize );
     
    403396  status = pthread_attr_getstack( &attr, &stackaddr, &stacksize );
    404397  posix_service_failed( status, "pthread_attr_getstack");
    405 #endif
    406398
    407399  /* exercise get and set detach state */
    408400  empty_line();
    409401
    410 #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE
    411402  puts( "Init - pthread_attr_setguardsize - EINVAL (NULL attr)" );
    412403  status = pthread_attr_setguardsize( NULL, 0 );
     
    424415  status = pthread_attr_setguardsize( &attr, STACK_MINIMUM_SIZE * 2 );
    425416  posix_service_failed( status, "");
    426 #endif
    427 
    428 #if HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE
     417
    429418  puts( "Init - pthread_attr_getguardsize - EINVAL (NULL attr)" );
    430419  status = pthread_attr_getguardsize( NULL, &guardsize );
     
    442431  status = pthread_attr_getguardsize( &attr, &guardsize );
    443432  posix_service_failed( status, "pthread_attr_getguardsize");
    444 #endif
    445433
    446434  /* exercise get and set detach state */
  • testsuites/psxtests/psxenosys/init.c

    rc77cd426 rb422aa3f  
    1414#include <sys/types.h>
    1515#include <sys/wait.h>
    16 #if HAVE_SYS_MMAN_H
    17 /* POSIX mandates mprotect in sys/mman.h, but newlib doesn't have this */
    1816#include <sys/mman.h>
    19 #endif
    2017#include <pthread.h>
    2118
     
    3027
    3128const char rtems_test_name[] = "PSXENOSYS";
    32 
    33 #if !HAVE_DECL_MPROTECT
    34 extern int mprotect(const void *addr, size_t len, int prot);
    35 #endif
    36 #if !HAVE_DECL_PTHREAD_ATFORK
    37 extern int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));
    38 #endif
    3929
    4030void check_enosys(int status);
  • testsuites/psxtests/psxgetattrnp01/init.c

    rc77cd426 rb422aa3f  
    2424void *POSIX_Init(void *argument);
    2525
    26 #if HAVE_DECL_PTHREAD_GETATTR_NP
    27 
    28 
    2926void *Thread_1(void *argument);
    3027
     
    6663    return 1;
    6764
    68   #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE
    69     if ( attr1->guardsize != attr2->guardsize )
    70       return 1;
    71   #endif
     65  if ( attr1->guardsize != attr2->guardsize )
     66    return 1;
    7267
    7368  #if defined(_POSIX_THREAD_CPUTIME)
     
    271266  return NULL; /* just so the compiler thinks we returned something */
    272267}
    273 #else
    274 void *POSIX_Init(
    275   void *ignored
    276 )
    277 {
    278   TEST_BEGIN();
    279   puts( "  pthread_getattr_np NOT supported" );
    280   TEST_END();
    281   rtems_test_exit(0);
    282   return NULL; /* just so the compiler thinks we returned something */
    283 }
    284 
    285 #endif
     268
    286269/* configuration information */
    287270
  • testsuites/psxtests/psxgetrusage01/init.c

    rc77cd426 rb422aa3f  
    1515#include <sys/resource.h>
    1616#include <errno.h>
    17 
    18 #if !HAVE_DECL_GETRUSAGE
    19 extern int getrusage(int who, struct rusage *usage);
    20 #endif
    2117
    2218#include <tmacros.h>
  • testsuites/psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c

    rc77cd426 rb422aa3f  
    1515#endif
    1616
    17 #if HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE
    1817#include <pthread.h>
    1918
     
    3433  return result;
    3534}
    36 #endif
  • testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstack.c

    rc77cd426 rb422aa3f  
    1515#endif
    1616
    17 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK
    1817#include <pthread.h>
    1918#include <limits.h>  /* only for PTHREAD_STACK_MIN */
     
    4039  return result;
    4140}
    42 #endif
  • testsuites/psxtests/psxhdrs/pthread/pthread_attr_setguardsize.c

    rc77cd426 rb422aa3f  
    1515#endif
    1616
    17 #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE
    1817#include <pthread.h>
    1918#include <limits.h>  /* only for PTHREAD_STACK_MIN */
     
    3736  return result;
    3837}
    39 #endif
  • testsuites/psxtests/psxhdrs/pthread/pthread_attr_setstack.c

    rc77cd426 rb422aa3f  
    1515#endif
    1616
    17 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK
    1817#include <pthread.h>
    1918#include <limits.h>  /* only for PTHREAD_STACK_MIN */
     
    4342  return result;
    4443}
    45 #endif
  • testsuites/psxtests/psximfs02/init.c

    rc77cd426 rb422aa3f  
    2525
    2626const char rtems_test_name[] = "PSXIMFS 2";
    27 
    28 #if !HAVE_DECL_SETEUID
    29 extern int seteuid(uid_t euid);
    30 #endif
    3127
    3228/* forward declarations to avoid warnings */
  • testsuites/psxtests/psxrwlock01/test.c

    rc77cd426 rb422aa3f  
    3232void *WriteLockThread(void *arg);
    3333int test_main(void);
    34 
    35 #if !HAVE_DECL_PTHREAD_RWLOCK_UNLOCK
    36 /* FIXME: Newlib should provide the decl. */
    37 extern int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);
    38 #endif
    3934
    4035#define NUMBER_THREADS 2
  • testsuites/psxtests/psxstack02/init.c

    rc77cd426 rb422aa3f  
    5555void *POSIX_Init(void *argument)
    5656{
    57 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK
    5857  int                 sc;
    5958  pthread_t           id;
     
    8483  sc = nanosleep( &delay_request, NULL );
    8584  rtems_test_assert( !sc );
    86 #else
    87   puts( "pthread_set_stack not supported - SKIPPING TEST CASE" );
    88 #endif
    89  
     85
    9086  TEST_END();
    9187
  • testsuites/psxtests/psxtime/test.c

    rc77cd426 rb422aa3f  
    3333
    3434const char rtems_test_name[] = "PSXTIME";
    35 
    36 #if !HAVE_DECL_ADJTIME
    37 extern int adjtime(const struct timeval *delta, struct timeval *olddelta);
    38 #endif
    3935
    4036void test_adjtime(void);
  • testsuites/psxtmtests/configure.ac

    rc77cd426 rb422aa3f  
    2626RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
    2727AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes")
    28 
    29 # but newlib doesn't have sys/mman.h
    30 AC_CHECK_HEADERS([sys/mman.h])
    31 
    32 # FIXME: newlib should supply declaration of pthread_rwlock_unlock()
    33 AC_CHECK_DECLS([pthread_rwlock_unlock],[],[],[[#include <pthread.h>]])
    34 
    35 # FIXME: newlib should supply declaration of pthread_atfork()
    36 AC_CHECK_DECLS([pthread_atfork],[],[],[[#include <pthread.h>]])
    37 
    38 # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
    39 # Likely an anachronism in RTEMS.
    40 AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
    41 
    42 # FIXME: RTEMS presumes pthread_attr_getcputime to be IEEE Std 1003.1
    43 # Likely an anachronism in RTEMS.
    44 AC_CHECK_DECLS([pthread_attr_getcputime],[],[],[[#include <pthread.h>]])
    45 
    46 # FIXME: RTEMS presumes pthread_attr_setcputime to be IEEE Std 1003.1
    47 # Likely an anachronism in RTEMS.
    48 AC_CHECK_DECLS([pthread_attr_setcputime],[],[],[[#include <pthread.h>]])
    49 
    50 # Added to pthreads after initial revision.  May not be in toolset
    51 AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])
    52 
    53 # Added to pthreads after initial revision.  May not be in toolset
    54 AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])
    55 
    56 # Added to pthreads after initial revision.  May not be in toolset
    57 AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])
    58 
    59 # Added to pthreads after initial revision.  May not be in toolset
    60 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])
    61 
    62 # FIXME: adjtime is a non-standardized BSD/Linux extension
    63 # RTEMS should not rely on adjtime
    64 AC_CHECK_DECLS([adjtime],[],[],[[#include <sys/time.h>]])
    65 
    66 # FIXME: IEEE Std 1003.1-2008 mandates mprotect in sys/mman.h,
    67 # RTEMS provides a stub, despite newlib doesn't have sys/mman.h
    68 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])
    69 
    70 # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h
    71 # RTEMS provides it, despite newlib doesn't declare it.
    72 AC_CHECK_DECLS([seteuid],[],[],[#include <unistd.h>])
    73 
    74 # FIXME: We should get rid of this. It's a cludge.
    75 AC_CHECK_SIZEOF([off_t])
    7628
    7729OPERATION_COUNT=${OPERATION_COUNT-100}
  • testsuites/samples/configure.ac

    rc77cd426 rb422aa3f  
    3131RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
    3232
    33 CXXTESTS=$HAS_CPLUSPLUS
    34 AS_IF([test $HAS_CPLUSPLUS = yes],[
    35   AC_LANG_PUSH([C++])
    36   AC_CHECK_HEADERS([cstdio cstdlib iostream],[],[CXXTESTS=no])
    37   AC_CACHE_CHECK(
    38   [if iostream supports std:: namespace],
    39   [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE],
    40   [AC_COMPILE_IFELSE(
    41     [AC_LANG_PROGRAM(
    42       [[#include <iostream>]],
    43       [[std::cout << "hello" << std::endl;]])
    44     ],
    45     [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=yes],
    46     [rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE=no])
    47   ])
    48   AS_IF([test $rtems_cv_HAVE_IOSTREAM_STD_NAMESPACE = no],[CXXTESTS=no])
    49   AS_IF([test $CXXTESTS = no],[
    50     AC_MSG_WARN([disabling C++ tests])
    51   ])
    52   AC_LANG_POP
    53 ])
    54 
    55 AM_CONDITIONAL([CXXTESTS],[test $CXXTESTS = "yes"])
     33AM_CONDITIONAL([CXXTESTS],[test "$HAS_CPLUSPLUS" = "yes"])
    5634AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes")
    5735AM_CONDITIONAL(HAS_MP,test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes")
    5836AM_CONDITIONAL(NO_SMP,test "$rtems_cv_RTEMS_SMP" != "yes")
    5937AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes")
    60 
    61 # FIXME: We should get rid of this. It's a cludge.
    62 AC_CHECK_SIZEOF([time_t])
    6338
    6439# BSP Test configuration
  • testsuites/smptests/configure.ac

    rc77cd426 rb422aa3f  
    2525RTEMS_CANONICALIZE_TOOLS
    2626
     27RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    2728RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API])
    28 
    29 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP)
    30 RTEMS_CHECK_CPUOPTS([RTEMS_MULTIPROCESSING])
    31 RTEMS_CHECK_CXX(RTEMS_BSP)
    32 RTEMS_CHECK_CPUOPTS([RTEMS_NETWORKING])
    3329RTEMS_CHECK_CPUOPTS([RTEMS_SMP])
    3430
     
    3632AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes")
    3733AM_CONDITIONAL([HAS_POSIX],[test x"${rtems_cv_RTEMS_POSIX_API}" = xyes])
    38 
    39 # These are SMP related and were added to newlib by RTEMS.
    40 AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[
    41   #define _GNU_SOURCE
    42   #include <pthread.h>]])
    43 AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[
    44   #define _GNU_SOURCE
    45   #include <pthread.h>]])
    46 AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[
    47   #define _GNU_SOURCE
    48   #include <pthread.h>]])
    49 AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[
    50   #define _GNU_SOURCE
    51   #include <pthread.h>]])
    52 AC_CHECK_DECLS([pthread_getattr_np],[],[],[[
    53   #define _GNU_SOURCE
    54   #include <pthread.h>]])
    5534
    5635# BSP Test configuration
  • testsuites/smptests/smppsxaffinity01/init.c

    rc77cd426 rb422aa3f  
    2020
    2121const char rtems_test_name[] = "SMPPSXAFFINITY 1";
    22 
    23 #if HAVE_DECL_PTHREAD_GETAFFINITY_NP
    2422
    2523#define CPU_COUNT 4
     
    152150}
    153151
    154 #else
    155 void *POSIX_Init(
    156   void *ignored
    157 )
    158 {
    159   TEST_BEGIN();
    160   puts( " POSIX Affinity Methods NOT Supported");
    161   TEST_END();
    162   rtems_test_exit(0);
    163 }
    164 
    165 #endif
    166152/* configuration information */
    167153
  • testsuites/smptests/smppsxaffinity02/init.c

    rc77cd426 rb422aa3f  
    2323const char rtems_test_name[] = "SMPPSXAFFINITY 2";
    2424
    25 #if HAVE_DECL_PTHREAD_GETAFFINITY_NP
    26 
    2725pthread_t           Init_id;
    2826pthread_t           Med_id[NUM_CPUS-1];
     
    218216}
    219217
    220 #else
    221 void *POSIX_Init(
    222   void *ignored
    223 )
    224 {
    225   TEST_BEGIN();
    226   puts( " Affinity NOT Supported");
    227   TEST_END();
    228   rtems_test_exit(0);
    229 }
    230 
    231 #endif
    232218/* configuration information */
    233219
  • testsuites/sptests/configure.ac

    rc77cd426 rb422aa3f  
    2929
    3030AM_CONDITIONAL([HAS_CPLUSPLUS],[test $HAS_CPLUSPLUS = "yes"])
    31 
    32 # FIXME: We should get rid of this. It's a cludge.
    33 AC_CHECK_SIZEOF([time_t])
    3431
    3532# Some tests should not be built/run in SMP configurations
  • testsuites/support/include/primode.h

    rc77cd426 rb422aa3f  
    1515
    1616#include <inttypes.h>
     17#include <rtems/score/cpuopts.h>
    1718
    18 #ifndef SIZEOF_MODE_T
    19 #error "missing SIZEOF_MODE_T"
    20 #endif
    21 
    22 #if SIZEOF_MODE_T == 8
     19#if __RTEMS_SIZEOF_MODE_T__ == 8
    2320#define PRIomode_t PRIo64
    24 #elif SIZEOF_MODE_T == 4
     21#elif __RTEMS_SIZEOF_MODE_T__ == 4
    2522#define PRIomode_t PRIo32
    2623#else
  • testsuites/support/include/pritime.h

    rc77cd426 rb422aa3f  
    1515
    1616#include <inttypes.h>
     17#include <rtems/score/cpuopts.h>
    1718
    18 #ifndef SIZEOF_TIME_T
    19 #error "missing SIZEOF_TIME_T"
    20 #endif
    21 
    22 #if SIZEOF_TIME_T == 8
     19#if __RTEMS_SIZEOF_TIME_T__ == 8
    2320#define PRIdtime_t PRId64
    24 #elif SIZEOF_TIME_T == 4
     21#elif __RTEMS_SIZEOF_TIME_T__ == 4
    2522#define PRIdtime_t PRId32
    2623#else
Note: See TracChangeset for help on using the changeset viewer.