Changeset 56864ff in rtems


Ignore:
Timestamp:
Jul 21, 2009, 5:25:46 PM (10 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, master
Children:
99fbb608
Parents:
b58c049
Message:

2009-07-21 Joel Sherrill <joel.sherrill@…>

  • psxmutexattr01/init.c: Make test optional if tools do not support posix mutex type attribute.
Location:
testsuites/psxtests
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • testsuites/psxtests/ChangeLog

    rb58c049 r56864ff  
     12009-07-21      Joel Sherrill <joel.sherrill@oarcorp.com>
     2
     3        * psxmutexattr01/init.c: Make test optional if tools do not support
     4        posix mutex type attribute.
     5
    162009-07-21      Joel Sherrill <joel.sherrill@oarcorp.com>
    27
  • testsuites/psxtests/psxmutexattr01/init.c

    rb58c049 r56864ff  
    1414#include <pthread.h>
    1515
     16#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
    1617typedef struct {
    1718  const char *name;
     
    2930
    3031#define TO_CHECK sizeof(TypesToCheck) / sizeof(ToCheck_t)
     32#endif
    3133
    3234void *POSIX_Init(
     
    4143  puts( "\n\n*** POSIX MUTEX ATTRIBUTE TEST 1 ***" );
    4244
     45#if defined(_UNIX98_THREAD_MUTEX_ATTRIBUTES)
    4346  puts( "Init - pthread_mutexattr_gettype - attr NULL - EINVAL" );
    4447  sc = pthread_mutexattr_gettype( NULL, &type );
     
    9295    }
    9396  }
     97#else
     98  puts( "POSIX Mutex Attribute Type Not Supported in Tools" );
     99#endif
    94100
    95101  puts( "*** END OF POSIX MUTEX ATTRIBUTE TEST 1 ***" );
Note: See TracChangeset for help on using the changeset viewer.