Changeset c64e4ed4 in rtems for testsuites/support


Ignore:
Timestamp:
Jan 15, 1996, 9:50:28 PM (25 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
a625ccd
Parents:
5c491aef
Message:

updates from Tony Bennett for PA and UNIX ports

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/support/include/tmacros.h

    r5c491aef rc64e4ed4  
    2222#endif
    2323
    24 #include <rtems.h>
    25 #include <bsp.h>
     24#include <bsp.h>    /* includes <rtems.h> */
    2625
    2726#include <stdio.h>
     
    4140
    4241#define fatal_directive_status( stat, desired, msg ) \
    43      { \
     42     do { \
    4443       if ( (stat) != (desired) ) { \
    4544         printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
    4645                 (msg), (desired), (stat) ); \
     46         fflush(stdout); \
    4747         exit( stat ); \
    4848       } \
    49      }
     49     } while ( 0 )
    5050
    5151#define sprint_time(str,s1,tb,s2) \
     52  do { \
    5253    sprintf( (str), "%s%02d:%02d:%02d   %02d/%02d/%04d%s", \
    5354       s1, (tb)->hour, (tb)->minute, (tb)->second, \
    54        (tb)->month, (tb)->day, (tb)->year, s2 );
     55       (tb)->month, (tb)->day, (tb)->year, s2 ); \
     56  } while ( 0 )
    5557
    5658#define print_time(s1,tb,s2) \
     59  do { \
    5760    printf( "%s%02d:%02d:%02d   %02d/%02d/%04d%s", \
    5861       s1, (tb)->hour, (tb)->minute, (tb)->second, \
    59        (tb)->month, (tb)->day, (tb)->year, s2 );
     62       (tb)->month, (tb)->day, (tb)->year, s2 ); \
     63    fflush(stdout); \
     64  } while ( 0 )
    6065
    6166#define put_dot( c ) putchar( c ); fflush( stdout )
Note: See TracChangeset for help on using the changeset viewer.