mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-04 21:12:47 -05:00
Build various unit-test main() programs in utils.
I found these while going through the code, and decided if we're going to have them then we should compile them. They didn't all compile first time, proving my point :-) I've enhanced the tree234 test so that it has a verbose option, which by default is off.
This commit is contained in:
@ -53,7 +53,7 @@ int main(void)
|
||||
#define TEST1(func, string, arg2, suffix, result) do \
|
||||
{ \
|
||||
const char *str = string; \
|
||||
unsigned ret = func(string, arg2) suffix; \
|
||||
unsigned ret = func(str, arg2) suffix; \
|
||||
if (ret == result) { \
|
||||
passes++; \
|
||||
} else { \
|
||||
|
Reference in New Issue
Block a user