init all fields in expected test results

This commit is contained in:
Radim Kolar 2024-07-08 11:23:49 +02:00
parent d88cb13bf7
commit d6c3aa5e03
2 changed files with 12 additions and 9 deletions

View File

@ -20,7 +20,8 @@ Version NEXT
If we do not have fseeko set off_t size to zero
Current codebase requires fseeko. Test for this in SCons and
exit build if function is unavailable.
parsecheck: report if all tests passed / some failed
parsecheck: report if all tests passed / some failed
parsecheck: init all fields in testcase results
Version 2.8.1b29 - 24 Aug 2019
added scons command line argument without-fspscan=yes for building

View File

@ -29,18 +29,20 @@ struct {
unsigned int d_len; /* length of directory part of path. */
const char *passwd; /* ptr to password */
char inetstr[16]; /* inet-address of remote-FSP */
char portstr[8]; /* port of remote-FSP */
char portstr [8]; /* port of remote-FSP */
};
#endif
#define NULLPPATH NULL, NULL, 0, NULL, 0, NULL, {0}, {0}
PPATH testresults[]={
{".",".",1,".",1,NULL,{0},{0}}, {NULL}, {".",".",1,".",1,NULL},
{".",".",1,".",1,"onlypwd"},
{"filename","filename",8,".",1,NULL} , {"filename","filename",8,".",1,NULL} , {"filename","filename",8,".",1,NULL},
{"dirname/filename","filename",8,"dirname",7,NULL} , {"dirname/filename","filename",8,"dirname",7,NULL} , {"dirname//filename","filename",8,"dirname",7,NULL},
{"dir1name/dir2name/",".",1,"dir1name/dir2name",17}, {"dir1name//dir2name//",".",1,"dir1name//dir2name",18},
{"filename","filename",8,".",1,"passwd"}, {"filename","filename",8,".",1,"passwd"},
{NULL},{NULL},{NULL}
{".",".",1,".",1,NULL,{0},{0}}, {0}, {".",".",1,".",1,NULL,{0},{0}},
{".",".",1,".",1,"onlypwd", {0},{0}},
{"filename","filename",8,".",1,NULL,{0},{0}} , {"filename","filename",8,".",1,NULL,{0},{0}} , {"filename","filename",8,".",1,NULL,{0},{0}},
{"dirname/filename","filename",8,"dirname",7,NULL, {0},{0}} , {"dirname/filename","filename",8,"dirname",7,NULL,{0},{0}} , {"dirname//filename","filename",8,"dirname",7,NULL,{0},{0}},
{"dir1name/dir2name/",".",1,"dir1name/dir2name",17,NULL,{0},{0}}, {"dir1name//dir2name//",".",1,"dir1name//dir2name",18,NULL,{0},{0}},
{"filename","filename",8,".",1,"passwd",{0},{0}}, {"filename","filename",8,".",1,"passwd",{0},{0}},
{NULLPPATH},{NULLPPATH},{NULLPPATH}
};
static void print_path(PPATH *pp)