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

@ -21,6 +21,7 @@ Version NEXT
Current codebase requires fseeko. Test for this in SCons and Current codebase requires fseeko. Test for this in SCons and
exit build if function is unavailable. 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 Version 2.8.1b29 - 24 Aug 2019
added scons command line argument without-fspscan=yes for building added scons command line argument without-fspscan=yes for building

View File

@ -33,14 +33,16 @@ struct {
}; };
#endif #endif
#define NULLPPATH NULL, NULL, 0, NULL, 0, NULL, {0}, {0}
PPATH testresults[]={ PPATH testresults[]={
{".",".",1,".",1,NULL,{0},{0}}, {NULL}, {".",".",1,".",1,NULL}, {".",".",1,".",1,NULL,{0},{0}}, {0}, {".",".",1,".",1,NULL,{0},{0}},
{".",".",1,".",1,"onlypwd"}, {".",".",1,".",1,"onlypwd", {0},{0}},
{"filename","filename",8,".",1,NULL} , {"filename","filename",8,".",1,NULL} , {"filename","filename",8,".",1,NULL}, {"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} , {"dirname/filename","filename",8,"dirname",7,NULL} , {"dirname//filename","filename",8,"dirname",7,NULL}, {"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}, {"dir1name//dir2name//",".",1,"dir1name//dir2name",18}, {"dir1name/dir2name/",".",1,"dir1name/dir2name",17,NULL,{0},{0}}, {"dir1name//dir2name//",".",1,"dir1name//dir2name",18,NULL,{0},{0}},
{"filename","filename",8,".",1,"passwd"}, {"filename","filename",8,".",1,"passwd"}, {"filename","filename",8,".",1,"passwd",{0},{0}}, {"filename","filename",8,".",1,"passwd",{0},{0}},
{NULL},{NULL},{NULL} {NULLPPATH},{NULLPPATH},{NULLPPATH}
}; };
static void print_path(PPATH *pp) static void print_path(PPATH *pp)