]> pd.if.org Git - pdclib.old/commitdiff
Added line number to failed testcase output.
authorsolar <>
Fri, 2 Dec 2005 11:04:38 +0000 (11:04 +0000)
committersolar <>
Fri, 2 Dec 2005 11:04:38 +0000 (11:04 +0000)
internals/_PDCLIB_test.h

index b35c994180ebd394d91ac271e30b05892490eb7a..057f957951b60a53aaf8f703a87e745080677017 100644 (file)
@@ -19,5 +19,5 @@ char const abcdx[] = "abcdx";
 
 #define BEGIN_TESTS   unsigned int rc = 0
 #define TESTCASE( x ) if ( x ) {} \
 
 #define BEGIN_TESTS   unsigned int rc = 0
 #define TESTCASE( x ) if ( x ) {} \
-                      else { rc += 1; printf( "Testcase failed: " __FILE__ " - " #x "\n" ); }
+                      else { rc += 1; printf( "Testcase failed: " __FILE__ ", line %d - " #x "\n", __LINE__ ); }
 #define TEST_RESULTS  rc
 #define TEST_RESULTS  rc