Changeset f388d36 in rtems


Ignore:
Timestamp:
Jan 5, 2000, 6:17:01 PM (20 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
db6ec79e
Parents:
99e7ab89
Message:

Now print strings -- not error numbers.

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/tests/support/include/tmacros.h

    r99e7ab89 rf388d36  
    2626#include <stdlib.h>
    2727#include <assert.h>
     28#include <rtems/error.h>
    2829
    2930#define FOREVER 1                  /* infinite loop */
     
    6162    check_dispatch_disable_level( _level ); \
    6263    if ( (_stat) != (_desired) ) { \
    63       printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
    64               (_msg), (_desired), (_stat) ); \
     64      printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
     65              (_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
    6566      fflush(stdout); \
    6667      exit( _stat ); \
  • testsuites/support/include/tmacros.h

    r99e7ab89 rf388d36  
    2626#include <stdlib.h>
    2727#include <assert.h>
     28#include <rtems/error.h>
    2829
    2930#define FOREVER 1                  /* infinite loop */
     
    6162    check_dispatch_disable_level( _level ); \
    6263    if ( (_stat) != (_desired) ) { \
    63       printf( "\n%s FAILED -- expected (%d) got (%d)\n", \
    64               (_msg), (_desired), (_stat) ); \
     64      printf( "\n%s FAILED -- expected (%s) got (%s)\n", \
     65              (_msg), rtems_status_text(_desired), rtems_status_text(_stat) ); \
    6566      fflush(stdout); \
    6667      exit( _stat ); \
Note: See TracChangeset for help on using the changeset viewer.