diff options
author | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-07 11:16:44 +0000 |
---|---|---|
committer | Christophe Genevey Metat <genevey.christophe@gmail.com> | 2016-06-07 11:16:44 +0000 |
commit | 719620aa7ed036e846a08c813b63d4bdb85dc9dc (patch) | |
tree | c9c9e4c1345081ce94b684d485edb686037300d4 /src/my/test_my.c | |
parent | 5c57b333fd9ca376e9ba2c1932127f733d684abb (diff) | |
download | gnunet-719620aa7ed036e846a08c813b63d4bdb85dc9dc.tar.gz gnunet-719620aa7ed036e846a08c813b63d4bdb85dc9dc.zip |
start to fix extract vsize
Diffstat (limited to 'src/my/test_my.c')
-rw-r--r-- | src/my/test_my.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/my/test_my.c b/src/my/test_my.c index af15b6ab2..b8b5faf33 100644 --- a/src/my/test_my.c +++ b/src/my/test_my.c | |||
@@ -162,7 +162,7 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
162 | " abs_time" | 162 | " abs_time" |
163 | ",forever" | 163 | ",forever" |
164 | ",hash" | 164 | ",hash" |
165 | //" vsize" | 165 | ",vsize" |
166 | ",u16" | 166 | ",u16" |
167 | ",u32" | 167 | ",u32" |
168 | ",u64" | 168 | ",u64" |
@@ -206,7 +206,7 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
206 | GNUNET_MY_result_spec_absolute_time (&abs_time2), | 206 | GNUNET_MY_result_spec_absolute_time (&abs_time2), |
207 | GNUNET_MY_result_spec_absolute_time (&forever2), | 207 | GNUNET_MY_result_spec_absolute_time (&forever2), |
208 | GNUNET_MY_result_spec_auto_from_type (&hc2), | 208 | GNUNET_MY_result_spec_auto_from_type (&hc2), |
209 | //GNUNET_MY_result_spec_variable_size (&msg2, &msg2_len), | 209 | GNUNET_MY_result_spec_variable_size (&msg2, &msg2_len), |
210 | GNUNET_MY_result_spec_uint16 (&u162), | 210 | GNUNET_MY_result_spec_uint16 (&u162), |
211 | GNUNET_MY_result_spec_uint32 (&u322), | 211 | GNUNET_MY_result_spec_uint32 (&u322), |
212 | GNUNET_MY_result_spec_uint64 (&u642), | 212 | GNUNET_MY_result_spec_uint64 (&u642), |
@@ -224,6 +224,12 @@ run_queries (struct GNUNET_MYSQL_Context *context) | |||
224 | &hc2, | 224 | &hc2, |
225 | sizeof (struct GNUNET_HashCode))); | 225 | sizeof (struct GNUNET_HashCode))); |
226 | 226 | ||
227 | GNUNET_break (strlen (msg) == msg2_len); | ||
228 | GNUNET_break (0 == | ||
229 | strncmp (msg, | ||
230 | msg2, | ||
231 | msg2_len)); | ||
232 | fprintf(stderr, "msg2 : %d\n", strlen(msg2)); | ||
227 | GNUNET_break (16 == u162); | 233 | GNUNET_break (16 == u162); |
228 | GNUNET_break (32 == u322); | 234 | GNUNET_break (32 == u322); |
229 | GNUNET_break (64 == u642); | 235 | GNUNET_break (64 == u642); |