test: make T0 harness results complete
This commit is contained in:
@@ -53,7 +53,7 @@
|
||||
#include <sys/wait.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
enum { M_ID, M_DIVERGE, M_WWREJECT };
|
||||
enum { M_ID, M_DIVERGE, M_WWREJECT, NENT_EXPECT = 42 };
|
||||
|
||||
struct ent {
|
||||
const char *fixture; /* repo-relative .ww; NULL → probe entry */
|
||||
@@ -95,10 +95,6 @@ static const struct ent ents[] = {
|
||||
{ .fixture = "lib/memio/memiotest.ww", .mode = M_ID },
|
||||
{ .fixture = "lib/os/ostest.ww", .mode = M_ID },
|
||||
{ .fixture = "lib/regex/regex_test.ww", .mode = M_ID },
|
||||
/* in-package white-box half (#9): the wb/ driver dir-resolves
|
||||
* `import regex` and bundles lib/regex/regex_whitebox.ww (package
|
||||
* regex), so this fixture byte-ids the moved engine probes. */
|
||||
{ .fixture = "lib/regex/wb/regex_test.ww", .mode = M_ID },
|
||||
{ .fixture = "lib/strconv/test/ftostest.ww", .mode = M_ID },
|
||||
/* graduated from #59.10 DIVERGE by the #62 float-literal fold fix
|
||||
* (wwstage lexer now folds through strconv.stof64, matching
|
||||
@@ -457,6 +453,12 @@ main(void)
|
||||
if (!bin) return 1;
|
||||
char cwd[1024];
|
||||
if (getcwd(cwd, sizeof cwd) == NULL) return 1;
|
||||
int nent = (int)(sizeof ents / sizeof ents[0]) - 1;
|
||||
if (nent != NENT_EXPECT) {
|
||||
fprintf(stderr, "lib_byteid FAIL: corpus has %d entries, want %d\n",
|
||||
nent, NENT_EXPECT);
|
||||
return 1;
|
||||
}
|
||||
|
||||
int fail = 0, n = 0, nid = 0, ndiv = 0, nrej = 0;
|
||||
if (corpus_complete(cwd) != 0) fail++;
|
||||
|
||||
Reference in New Issue
Block a user