]> pd.if.org Git - pdclib/commitdiff
Testcase printing made safe.
authorsolar <unknown>
Thu, 24 Jun 2010 13:42:59 +0000 (13:42 +0000)
committersolar <unknown>
Thu, 24 Jun 2010 13:42:59 +0000 (13:42 +0000)
internals/_PDCLIB_test.h

index eba739122878918b627ee7ce9463174ebcfeddf0..ad02b0fb71839924851a9f00f5ec30e5a63f7091 100644 (file)
@@ -21,7 +21,7 @@ int NO_TESTDRIVER = 0;
 static int rc = 0;
 
 #define TESTCASE( x ) if ( x ) {} \
-                      else { rc += 1; printf( "FAILED: " __FILE__ ", line %d - " #x "\n", __LINE__ ); }
+                      else { rc += 1; printf( "FAILED: " __FILE__ ", line %d - %s\n", __LINE__, #x ); }
 
 #ifndef REGTEST
 #define TESTCASE_NOREG( x ) TESTCASE( x )