Changeset 81be799 in rtems for testsuites/support


Ignore:
Timestamp:
Dec 17, 2007, 4:08:17 PM (12 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.9, master
Children:
5ce8a0d
Parents:
eed0b96d
Message:

2007-12-17 Joel Sherrill <joel.sherrill@…>

  • support/include/tmacros.h: Add new helper for POSIX tests.
File:
1 edited

Legend:

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

    reed0b96d r81be799  
    9696 fatal_posix_service_status_with_level( \
    9797      _dirstat, RTEMS_SUCCESSFUL, _failmsg, _level )
     98
     99#define fatal_posix_service_status_errno( _stat, _desired, _msg ) \
     100  if ( (_stat != -1) && (errno) != (_desired) ) { \
     101    check_dispatch_disable_level( 0 ); \
     102    printf( "\n%s FAILED -- expected (%d - %s) got (%d %d - %s)\n", \
     103            (_msg), _desired, strerror(_desired), \
     104            _stat, errno, strerror(errno) ); \
     105    FLUSH_OUTPUT(); \
     106    rtems_test_exit( _stat ); \
     107  }
    98108
    99109#define fatal_posix_service_status( _stat, _desired, _msg ) \
Note: See TracChangeset for help on using the changeset viewer.