aboutsummaryrefslogtreecommitdiff
path: root/test/090_tables_readwrite/tables_readwrite_tests.c
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2024-09-10 15:39:49 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2024-09-10 15:39:49 +0200
commit1f4900a3cc6ca74f94b73e224d14a09d52c4549c (patch)
tree955773f6467db3d3f62a4d453ec0a9853c8fccaa /test/090_tables_readwrite/tables_readwrite_tests.c
parent3c8f8c2e60cd089679cf5da5160baaf35977b220 (diff)
downloadnissy-core-1f4900a3cc6ca74f94b73e224d14a09d52c4549c.tar.gz
nissy-core-1f4900a3cc6ca74f94b73e224d14a09d52c4549c.zip
Added tabletype to tableinfo
Diffstat (limited to 'test/090_tables_readwrite/tables_readwrite_tests.c')
-rw-r--r--test/090_tables_readwrite/tables_readwrite_tests.c3
1 files changed, 3 insertions, 0 deletions
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 @@
6 6
7typedef struct { 7typedef struct {
8 char solver[INFO_SOLVER_STRLEN]; 8 char solver[INFO_SOLVER_STRLEN];
9 uint64_t type;
9 uint64_t infosize; 10 uint64_t infosize;
10 uint64_t fullsize; 11 uint64_t fullsize;
11 uint64_t hash; 12 uint64_t hash;
@@ -39,6 +40,7 @@ tableinfo_t test_readinfo(void) {
39 40
40 fgets(emptyline, 2, stdin); 41 fgets(emptyline, 2, stdin);
41 42
43 ret.type = readn();
42 ret.infosize = readn(); 44 ret.infosize = readn();
43 ret.fullsize = readn(); 45 ret.fullsize = readn();
44 ret.hash = readn(); 46 ret.hash = readn();
@@ -62,6 +64,7 @@ void test_writeinfo(tableinfo_t info) {
62 printf("%s\n", info.solver); 64 printf("%s\n", info.solver);
63 printf("\n"); 65 printf("\n");
64 66
67 printf("%" PRIu64 "\n", info.type);
65 printf("%" PRIu64 "\n", info.infosize); 68 printf("%" PRIu64 "\n", info.infosize);
66 printf("%" PRIu64 "\n", info.fullsize); 69 printf("%" PRIu64 "\n", info.fullsize);
67 printf("%" PRIu64 "\n", info.hash); 70 printf("%" PRIu64 "\n", info.hash);

Generated with cgit - Back to sebastiano.tronto.net