Next: , Previous: TEST_PASS, Up: Test Macros


3.2.3 TEST_FAIL

indicate that a test failed

Synopsis

     #include <testlib.h>
     
     TEST_FAIL( desc )
     TEST_FAIL_LINE( line )

Parameters

line
the line number to output
desc
a short description of the test being performed

Description

TEST_FAIL is called to indicate that a test failed. It is usually used when the determination of such is more complicated than allowed by the other testlib mechanisms.

Example

     TEST_FAIL( "+= operator, length");