1
0
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:
Simon Tatham
2021-04-17 16:39:31 +01:00
parent 395c228bee
commit 1c61fdf800
6 changed files with 98 additions and 45 deletions

View File

@ -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 { \