Changeset 695dd0b in rtems


Ignore:
Timestamp:
08/09/96 18:28:21 (28 years ago)
Author:
Mark Johannes <Mark.Johannes@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
8699a70
Parents:
66dfd0b
Message:

Init: added condattr - destroy, init, set and get cases

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/psxtests/psx10/init.c

    r66dfd0b r695dd0b  
    5555  assert( !status );
    5656
    57   puts( "Init: pthread_condattr_setpshared - EINVAL - attr" );
    5857  status = pthread_condattr_setpshared( NULL, PTHREAD_PROCESS_PRIVATE );
    5958  if ( status != EINVAL )
    6059    printf( "status = %d\n", status );
    6160  assert( status == EINVAL );
     61  puts( "Init: pthread_condattr_setpshared - EINVAL - attr" );
    6262
    63   puts( "Init: pthread_condattr_setpshared - EINVAL - pshared" );
    6463  status = pthread_condattr_setpshared( &attr, 0xFFFFFF );
    6564  if ( status != EINVAL )
    6665    printf( "status = %d\n", status );
    6766  assert( status == EINVAL );
     67  puts( "Init: pthread_condattr_setpshared - EINVAL - pshared" );
    6868
    6969  status = pthread_condattr_getpshared( &attr, &pshared );
    7070  assert( !status );
    71   printf( "Init: pthread_condattr_getpshared - %d", pshared );
     71  printf( "Init: pthread_condattr_getpshared - %d\n", pshared );
    7272
    73   puts( "Init: pthread_condattr_getpshared - EINVAL" );
    7473  status = pthread_condattr_getpshared( NULL, &pshared );
    7574  if ( status != EINVAL )
    7675    printf( "status = %d\n", status );
    7776  assert( status == EINVAL );
     77  puts( "Init: pthread_condattr_getpshared - EINVAL" );
    7878
    7979  Init_id = pthread_self();
     
    8989  /* exit this thread */
    9090
    91   pthread_exit( NULL );
     91  puts( "*** END OF POSIX TEST 5 ***" );
     92  exit( 0 );
    9293
    9394  return NULL; /* just so the compiler thinks we returned something */
  • testsuites/psxtests/psx10/init.c

    r66dfd0b r695dd0b  
    5555  assert( !status );
    5656
    57   puts( "Init: pthread_condattr_setpshared - EINVAL - attr" );
    5857  status = pthread_condattr_setpshared( NULL, PTHREAD_PROCESS_PRIVATE );
    5958  if ( status != EINVAL )
    6059    printf( "status = %d\n", status );
    6160  assert( status == EINVAL );
     61  puts( "Init: pthread_condattr_setpshared - EINVAL - attr" );
    6262
    63   puts( "Init: pthread_condattr_setpshared - EINVAL - pshared" );
    6463  status = pthread_condattr_setpshared( &attr, 0xFFFFFF );
    6564  if ( status != EINVAL )
    6665    printf( "status = %d\n", status );
    6766  assert( status == EINVAL );
     67  puts( "Init: pthread_condattr_setpshared - EINVAL - pshared" );
    6868
    6969  status = pthread_condattr_getpshared( &attr, &pshared );
    7070  assert( !status );
    71   printf( "Init: pthread_condattr_getpshared - %d", pshared );
     71  printf( "Init: pthread_condattr_getpshared - %d\n", pshared );
    7272
    73   puts( "Init: pthread_condattr_getpshared - EINVAL" );
    7473  status = pthread_condattr_getpshared( NULL, &pshared );
    7574  if ( status != EINVAL )
    7675    printf( "status = %d\n", status );
    7776  assert( status == EINVAL );
     77  puts( "Init: pthread_condattr_getpshared - EINVAL" );
    7878
    7979  Init_id = pthread_self();
     
    8989  /* exit this thread */
    9090
    91   pthread_exit( NULL );
     91  puts( "*** END OF POSIX TEST 5 ***" );
     92  exit( 0 );
    9293
    9394  return NULL; /* just so the compiler thinks we returned something */
Note: See TracChangeset for help on using the changeset viewer.