projects
/
fw
/
pdclib
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Testcase printing made safe.
[fw/pdclib]
/
internals
/
_PDCLIB_test.h
diff --git
a/internals/_PDCLIB_test.h
b/internals/_PDCLIB_test.h
index eba739122878918b627ee7ce9463174ebcfeddf0..ad02b0fb71839924851a9f00f5ec30e5a63f7091 100644
(file)
--- a/
internals/_PDCLIB_test.h
+++ b/
internals/_PDCLIB_test.h
@@
-21,7
+21,7
@@
int NO_TESTDRIVER = 0;
static int rc = 0;
#define TESTCASE( x ) if ( x ) {} \
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 )
#ifndef REGTEST
#define TESTCASE_NOREG( x ) TESTCASE( x )