From 1f4900a3cc6ca74f94b73e224d14a09d52c4549c Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Tue, 10 Sep 2024 15:39:49 +0200 Subject: Added tabletype to tableinfo --- test/090_tables_readwrite/00_table.in | 1 + test/090_tables_readwrite/00_table.out | 1 + test/090_tables_readwrite/tables_readwrite_tests.c | 3 +++ 3 files changed, 5 insertions(+) (limited to 'test') diff --git a/test/090_tables_readwrite/00_table.in b/test/090_tables_readwrite/00_table.in index a35f13a..f286968 100644 --- a/test/090_tables_readwrite/00_table.in +++ b/test/090_tables_readwrite/00_table.in @@ -1,5 +1,6 @@ Test solver +0 512 100000000000 12345678912345 diff --git a/test/090_tables_readwrite/00_table.out b/test/090_tables_readwrite/00_table.out index a35f13a..f286968 100644 --- a/test/090_tables_readwrite/00_table.out +++ b/test/090_tables_readwrite/00_table.out @@ -1,5 +1,6 @@ Test solver +0 512 100000000000 12345678912345 diff --git a/test/090_tables_readwrite/tables_readwrite_tests.c b/test/090_tables_readwrite/tables_readwrite_tests.c index b062460..f3162ea 100644 --- a/test/090_tables_readwrite/tables_readwrite_tests.c +++ b/test/090_tables_readwrite/tables_readwrite_tests.c @@ -6,6 +6,7 @@ typedef struct { char solver[INFO_SOLVER_STRLEN]; + uint64_t type; uint64_t infosize; uint64_t fullsize; uint64_t hash; @@ -39,6 +40,7 @@ tableinfo_t test_readinfo(void) { fgets(emptyline, 2, stdin); + ret.type = readn(); ret.infosize = readn(); ret.fullsize = readn(); ret.hash = readn(); @@ -62,6 +64,7 @@ void test_writeinfo(tableinfo_t info) { printf("%s\n", info.solver); printf("\n"); + printf("%" PRIu64 "\n", info.type); printf("%" PRIu64 "\n", info.infosize); printf("%" PRIu64 "\n", info.fullsize); printf("%" PRIu64 "\n", info.hash); -- cgit v1.3