Changeset d60d9505 in rtems


Ignore:
Timestamp:
08/12/96 19:20:18 (27 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c4f5e752
Parents:
40cfab47
Message:

added test case for non-NULL parameter to time()

Files:
2 edited

Legend:

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

    r40cfab47 rd60d9505  
    2323  pthread_t       thread_id;
    2424  time_t          seconds;
     25  time_t          seconds1;
    2526  time_t          remaining;
    2627  struct tm       tm;
     
    5960  seconds = time( NULL );
    6061  printf( ctime( &seconds ) );
     62
     63  /*  just to have the value copied out through the parameter */
     64 
     65  seconds = time( &seconds1 );
     66  assert( seconds == seconds1 );
    6167
    6268  /* check the time remaining */
  • testsuites/psxtests/psx01/init.c

    r40cfab47 rd60d9505  
    2323  pthread_t       thread_id;
    2424  time_t          seconds;
     25  time_t          seconds1;
    2526  time_t          remaining;
    2627  struct tm       tm;
     
    5960  seconds = time( NULL );
    6061  printf( ctime( &seconds ) );
     62
     63  /*  just to have the value copied out through the parameter */
     64 
     65  seconds = time( &seconds1 );
     66  assert( seconds == seconds1 );
    6167
    6268  /* check the time remaining */
Note: See TracChangeset for help on using the changeset viewer.