Previous: SUMMARY, Up: Adminstrative Macros


3.1.3 FAILED

return the number of tests which have failed

Synopsis

     #include <testlib.h>
     
     int FAILED( );

Description

FAILED returns the number of tests which have failed. This is useful for constructing an exit value for the test program to alert other software (make, for instance) that there has been a failure.

Example

     return FAILED( ) ? EXIT_FAILURE : EXIT_SUCCESS;