Changeset b422aa3f in rtems for testsuites
- Timestamp:
- 04/26/18 14:05:45 (6 years ago)
- Branches:
- 5, 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)
- Location:
- testsuites
- Files:
-
- 23 edited
Legend:
- Unmodified
- Added
- Removed
-
testsuites/fstests/configure.ac
rc77cd426 rb422aa3f 27 27 RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) 28 28 AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") 29 30 # but newlib doesn't have sys/mman.h31 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.140 # 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.144 # 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.148 # 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 toolset52 AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])53 54 # Added to pthreads after initial revision. May not be in toolset55 AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])56 57 # Added to pthreads after initial revision. May not be in toolset58 AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])59 60 # Added to pthreads after initial revision. May not be in toolset61 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])62 63 # FIXME: adjtime is a non-standardized BSD/Linux extension64 # RTEMS should not rely on adjtime65 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.h69 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])70 71 # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h72 # 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])79 29 80 30 # BSP Test configuration -
testsuites/libtests/configure.ac
rc77cd426 rb422aa3f 40 40 AC_MSG_ERROR([pax is missing.]) 41 41 ]) 42 43 AC_CHECK_HEADERS([complex.h])44 42 45 43 AM_CONDITIONAL(TARTESTS,test "$as_ln_s" = "ln -s" && test -n "$PAX" && test -n "$GZIP") -
testsuites/psxtests/configure.ac
rc77cd426 rb422aa3f 36 36 RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) 37 37 AM_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.h41 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 toolset50 AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])51 52 # Added to pthreads after initial revision. May not be in toolset53 AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])54 55 # Added to pthreads after initial revision. May not be in toolset56 AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])57 58 # Added to pthreads after initial revision. May not be in toolset59 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])60 61 # Added to newlib pthreads for RTEMS SMP (np), may not be present62 AC_CHECK_DECLS([pthread_attr_setaffinity_np],[],[],[[63 #define _GNU_SOURCE64 #include <pthread.h>]])65 66 # Added to newlib pthreads for RTEMS SMP (np), may not be present67 AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[68 #define _GNU_SOURCE69 #include <pthread.h>]])70 71 # Added to newlib pthreads for RTEMS SMP (np), may not be present72 AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[73 #define _GNU_SOURCE74 #include <pthread.h>]])75 76 # Added to newlib pthreads for RTEMS SMP (np), may not be present77 AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[78 #define _GNU_SOURCE79 #include <pthread.h>]])80 81 # Added to newlib pthreads for RTEMS SMP (np), may not be present82 AC_CHECK_DECLS([pthread_getattr_np],[],[],[[83 #define _GNU_SOURCE84 #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 extension93 # RTEMS should not rely on adjtime94 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.h98 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])99 100 # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h101 # 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])110 38 111 39 # BSP Test configuration -
testsuites/psxtests/psx07/init.c
rc77cd426 rb422aa3f 57 57 int schedpolicy; 58 58 size_t stacksize; 59 #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE60 59 size_t guardsize; 61 #endif62 60 void *stackaddr; 63 61 int detachstate; … … 123 121 posix_service_failed( status, "pthread_attr_init"); 124 122 125 #if HAVE_DECL_PTHREAD_ATTR_SETSTACKADDR126 123 attr.stacksize = rtems_configuration_get_work_space_size() * 10; 127 124 puts( "Init - pthread_create - EAGAIN (stacksize too large)" ); 128 125 status = pthread_create( &Task_id, &attr, Task_1, NULL ); 129 126 fatal_directive_check_status_only( status, EAGAIN, "stacksize too large" ); 130 #endif131 127 132 128 status = pthread_attr_init( &attr ); … … 365 361 empty_line(); 366 362 367 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK368 363 puts( "Init - pthread_attr_setstack- EINVAL (NULL attr)" ); 369 364 status = pthread_attr_setstack( NULL, &stackaddr, 1024 ); … … 381 376 status = pthread_attr_setstack( &attr, stackaddr, STACK_MINIMUM_SIZE * 2 ); 382 377 posix_service_failed( status, "OK"); 383 #endif 384 385 #if HAVE_DECL_PTHREAD_ATTR_GETSTACK 378 386 379 puts( "Init - pthread_attr_getstack- EINVAL (NULL attr)" ); 387 380 status = pthread_attr_getstack( NULL, &stackaddr, &stacksize ); … … 403 396 status = pthread_attr_getstack( &attr, &stackaddr, &stacksize ); 404 397 posix_service_failed( status, "pthread_attr_getstack"); 405 #endif406 398 407 399 /* exercise get and set detach state */ 408 400 empty_line(); 409 401 410 #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE411 402 puts( "Init - pthread_attr_setguardsize - EINVAL (NULL attr)" ); 412 403 status = pthread_attr_setguardsize( NULL, 0 ); … … 424 415 status = pthread_attr_setguardsize( &attr, STACK_MINIMUM_SIZE * 2 ); 425 416 posix_service_failed( status, ""); 426 #endif 427 428 #if HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE 417 429 418 puts( "Init - pthread_attr_getguardsize - EINVAL (NULL attr)" ); 430 419 status = pthread_attr_getguardsize( NULL, &guardsize ); … … 442 431 status = pthread_attr_getguardsize( &attr, &guardsize ); 443 432 posix_service_failed( status, "pthread_attr_getguardsize"); 444 #endif445 433 446 434 /* exercise get and set detach state */ -
testsuites/psxtests/psxenosys/init.c
rc77cd426 rb422aa3f 14 14 #include <sys/types.h> 15 15 #include <sys/wait.h> 16 #if HAVE_SYS_MMAN_H17 /* POSIX mandates mprotect in sys/mman.h, but newlib doesn't have this */18 16 #include <sys/mman.h> 19 #endif20 17 #include <pthread.h> 21 18 … … 30 27 31 28 const char rtems_test_name[] = "PSXENOSYS"; 32 33 #if !HAVE_DECL_MPROTECT34 extern int mprotect(const void *addr, size_t len, int prot);35 #endif36 #if !HAVE_DECL_PTHREAD_ATFORK37 extern int pthread_atfork(void (*prepare)(void), void (*parent)(void), void (*child)(void));38 #endif39 29 40 30 void check_enosys(int status); -
testsuites/psxtests/psxgetattrnp01/init.c
rc77cd426 rb422aa3f 24 24 void *POSIX_Init(void *argument); 25 25 26 #if HAVE_DECL_PTHREAD_GETATTR_NP27 28 29 26 void *Thread_1(void *argument); 30 27 … … 66 63 return 1; 67 64 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; 72 67 73 68 #if defined(_POSIX_THREAD_CPUTIME) … … 271 266 return NULL; /* just so the compiler thinks we returned something */ 272 267 } 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 286 269 /* configuration information */ 287 270 -
testsuites/psxtests/psxgetrusage01/init.c
rc77cd426 rb422aa3f 15 15 #include <sys/resource.h> 16 16 #include <errno.h> 17 18 #if !HAVE_DECL_GETRUSAGE19 extern int getrusage(int who, struct rusage *usage);20 #endif21 17 22 18 #include <tmacros.h> -
testsuites/psxtests/psxhdrs/pthread/pthread_attr_getguardsize.c
rc77cd426 rb422aa3f 15 15 #endif 16 16 17 #if HAVE_DECL_PTHREAD_ATTR_GETGUARDSIZE18 17 #include <pthread.h> 19 18 … … 34 33 return result; 35 34 } 36 #endif -
testsuites/psxtests/psxhdrs/pthread/pthread_attr_getstack.c
rc77cd426 rb422aa3f 15 15 #endif 16 16 17 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK18 17 #include <pthread.h> 19 18 #include <limits.h> /* only for PTHREAD_STACK_MIN */ … … 40 39 return result; 41 40 } 42 #endif -
testsuites/psxtests/psxhdrs/pthread/pthread_attr_setguardsize.c
rc77cd426 rb422aa3f 15 15 #endif 16 16 17 #if HAVE_DECL_PTHREAD_ATTR_SETGUARDSIZE18 17 #include <pthread.h> 19 18 #include <limits.h> /* only for PTHREAD_STACK_MIN */ … … 37 36 return result; 38 37 } 39 #endif -
testsuites/psxtests/psxhdrs/pthread/pthread_attr_setstack.c
rc77cd426 rb422aa3f 15 15 #endif 16 16 17 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK18 17 #include <pthread.h> 19 18 #include <limits.h> /* only for PTHREAD_STACK_MIN */ … … 43 42 return result; 44 43 } 45 #endif -
testsuites/psxtests/psximfs02/init.c
rc77cd426 rb422aa3f 25 25 26 26 const char rtems_test_name[] = "PSXIMFS 2"; 27 28 #if !HAVE_DECL_SETEUID29 extern int seteuid(uid_t euid);30 #endif31 27 32 28 /* forward declarations to avoid warnings */ -
testsuites/psxtests/psxrwlock01/test.c
rc77cd426 rb422aa3f 32 32 void *WriteLockThread(void *arg); 33 33 int test_main(void); 34 35 #if !HAVE_DECL_PTHREAD_RWLOCK_UNLOCK36 /* FIXME: Newlib should provide the decl. */37 extern int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);38 #endif39 34 40 35 #define NUMBER_THREADS 2 -
testsuites/psxtests/psxstack02/init.c
rc77cd426 rb422aa3f 55 55 void *POSIX_Init(void *argument) 56 56 { 57 #if HAVE_DECL_PTHREAD_ATTR_SETSTACK58 57 int sc; 59 58 pthread_t id; … … 84 83 sc = nanosleep( &delay_request, NULL ); 85 84 rtems_test_assert( !sc ); 86 #else 87 puts( "pthread_set_stack not supported - SKIPPING TEST CASE" ); 88 #endif 89 85 90 86 TEST_END(); 91 87 -
testsuites/psxtests/psxtime/test.c
rc77cd426 rb422aa3f 33 33 34 34 const char rtems_test_name[] = "PSXTIME"; 35 36 #if !HAVE_DECL_ADJTIME37 extern int adjtime(const struct timeval *delta, struct timeval *olddelta);38 #endif39 35 40 36 void test_adjtime(void); -
testsuites/psxtmtests/configure.ac
rc77cd426 rb422aa3f 26 26 RTEMS_CHECK_CPUOPTS([RTEMS_POSIX_API]) 27 27 AM_CONDITIONAL(HAS_POSIX,test x"${rtems_cv_RTEMS_POSIX_API}" = x"yes") 28 29 # but newlib doesn't have sys/mman.h30 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.139 # 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.143 # 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.147 # 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 toolset51 AC_CHECK_DECLS([pthread_attr_getstack],[],[],[[#include <pthread.h>]])52 53 # Added to pthreads after initial revision. May not be in toolset54 AC_CHECK_DECLS([pthread_attr_setstack],[],[],[[#include <pthread.h>]])55 56 # Added to pthreads after initial revision. May not be in toolset57 AC_CHECK_DECLS([pthread_attr_getguardsize],[],[],[[#include <pthread.h>]])58 59 # Added to pthreads after initial revision. May not be in toolset60 AC_CHECK_DECLS([pthread_attr_setguardsize],[],[],[[#include <pthread.h>]])61 62 # FIXME: adjtime is a non-standardized BSD/Linux extension63 # RTEMS should not rely on adjtime64 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.h68 AC_CHECK_DECLS([mprotect],[],[],[[#include <sys/mman.h>]])69 70 # FIXME: IEEE Std 1003.1-2008 mandates seteuid in unistd.h71 # 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])76 28 77 29 OPERATION_COUNT=${OPERATION_COUNT-100} -
testsuites/samples/configure.ac
rc77cd426 rb422aa3f 31 31 RTEMS_CHECK_CPUOPTS([RTEMS_SMP]) 32 32 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"]) 33 AM_CONDITIONAL([CXXTESTS],[test "$HAS_CPLUSPLUS" = "yes"]) 56 34 AM_CONDITIONAL(NETTESTS,test "$rtems_cv_RTEMS_NETWORKING" = "yes") 57 35 AM_CONDITIONAL(HAS_MP,test "$rtems_cv_RTEMS_MULTIPROCESSING" = "yes") 58 36 AM_CONDITIONAL(NO_SMP,test "$rtems_cv_RTEMS_SMP" != "yes") 59 37 AM_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])63 38 64 39 # BSP Test configuration -
testsuites/smptests/configure.ac
rc77cd426 rb422aa3f 25 25 RTEMS_CANONICALIZE_TOOLS 26 26 27 RTEMS_CHECK_CUSTOM_BSP(RTEMS_BSP) 27 28 RTEMS_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])33 29 RTEMS_CHECK_CPUOPTS([RTEMS_SMP]) 34 30 … … 36 32 AM_CONDITIONAL(HAS_SMP,test "$rtems_cv_RTEMS_SMP" = "yes") 37 33 AM_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_SOURCE42 #include <pthread.h>]])43 AC_CHECK_DECLS([pthread_attr_getaffinity_np],[],[],[[44 #define _GNU_SOURCE45 #include <pthread.h>]])46 AC_CHECK_DECLS([pthread_setaffinity_np],[],[],[[47 #define _GNU_SOURCE48 #include <pthread.h>]])49 AC_CHECK_DECLS([pthread_getaffinity_np],[],[],[[50 #define _GNU_SOURCE51 #include <pthread.h>]])52 AC_CHECK_DECLS([pthread_getattr_np],[],[],[[53 #define _GNU_SOURCE54 #include <pthread.h>]])55 34 56 35 # BSP Test configuration -
testsuites/smptests/smppsxaffinity01/init.c
rc77cd426 rb422aa3f 20 20 21 21 const char rtems_test_name[] = "SMPPSXAFFINITY 1"; 22 23 #if HAVE_DECL_PTHREAD_GETAFFINITY_NP24 22 25 23 #define CPU_COUNT 4 … … 152 150 } 153 151 154 #else155 void *POSIX_Init(156 void *ignored157 )158 {159 TEST_BEGIN();160 puts( " POSIX Affinity Methods NOT Supported");161 TEST_END();162 rtems_test_exit(0);163 }164 165 #endif166 152 /* configuration information */ 167 153 -
testsuites/smptests/smppsxaffinity02/init.c
rc77cd426 rb422aa3f 23 23 const char rtems_test_name[] = "SMPPSXAFFINITY 2"; 24 24 25 #if HAVE_DECL_PTHREAD_GETAFFINITY_NP26 27 25 pthread_t Init_id; 28 26 pthread_t Med_id[NUM_CPUS-1]; … … 218 216 } 219 217 220 #else221 void *POSIX_Init(222 void *ignored223 )224 {225 TEST_BEGIN();226 puts( " Affinity NOT Supported");227 TEST_END();228 rtems_test_exit(0);229 }230 231 #endif232 218 /* configuration information */ 233 219 -
testsuites/sptests/configure.ac
rc77cd426 rb422aa3f 29 29 30 30 AM_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])34 31 35 32 # Some tests should not be built/run in SMP configurations -
testsuites/support/include/primode.h
rc77cd426 rb422aa3f 15 15 16 16 #include <inttypes.h> 17 #include <rtems/score/cpuopts.h> 17 18 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 23 20 #define PRIomode_t PRIo64 24 #elif SIZEOF_MODE_T== 421 #elif __RTEMS_SIZEOF_MODE_T__ == 4 25 22 #define PRIomode_t PRIo32 26 23 #else -
testsuites/support/include/pritime.h
rc77cd426 rb422aa3f 15 15 16 16 #include <inttypes.h> 17 #include <rtems/score/cpuopts.h> 17 18 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 23 20 #define PRIdtime_t PRId64 24 #elif SIZEOF_TIME_T== 421 #elif __RTEMS_SIZEOF_TIME_T__ == 4 25 22 #define PRIdtime_t PRId32 26 23 #else
Note: See TracChangeset
for help on using the changeset viewer.