diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-06 14:34:33 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-06 14:34:33 +0900 |
commit | c83dbd0f063b7304ea6a4cfbfc663a2b864ad1ce (patch) | |
tree | fc92dc33f0ed9190cee38c3d8bcdbc5a7f32c6dc /src/util | |
parent | 69e6c0b893b0b642f969ac8a134d043a51e393a3 (diff) | |
download | gnunet-c83dbd0f063b7304ea6a4cfbfc663a2b864ad1ce.tar.gz gnunet-c83dbd0f063b7304ea6a4cfbfc663a2b864ad1ce.zip |
-migrate meta data tests to FS. Fix BIO error
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/bio.c | 7 | ||||
-rw-r--r-- | src/util/test_common_logging_dummy.c | 6 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/util/bio.c b/src/util/bio.c index a19e4f3ba..70620aea7 100644 --- a/src/util/bio.c +++ b/src/util/bio.c | |||
@@ -182,6 +182,13 @@ GNUNET_BIO_read_close (struct GNUNET_BIO_ReadHandle *h, char **emsg) | |||
182 | return err; | 182 | return err; |
183 | } | 183 | } |
184 | 184 | ||
185 | void | ||
186 | GNUNET_BIO_read_set_error (struct GNUNET_BIO_ReadHandle *h, const char* emsg) | ||
187 | { | ||
188 | GNUNET_assert (NULL == h->emsg); | ||
189 | h->emsg = GNUNET_strdup (emsg); | ||
190 | } | ||
191 | |||
185 | 192 | ||
186 | /** | 193 | /** |
187 | * Function used internally to read the contents of a file into a buffer. | 194 | * Function used internally to read the contents of a file into a buffer. |
diff --git a/src/util/test_common_logging_dummy.c b/src/util/test_common_logging_dummy.c index fdb21ad5a..7e362c683 100644 --- a/src/util/test_common_logging_dummy.c +++ b/src/util/test_common_logging_dummy.c | |||
@@ -25,12 +25,12 @@ | |||
25 | * @author LRN | 25 | * @author LRN |
26 | */ | 26 | */ |
27 | 27 | ||
28 | #undef GNUNET_EXTRA_LOGGING | ||
29 | #define GNUNET_EXTRA_LOGGING GNUNET_YES | ||
30 | |||
31 | #include "platform.h" | 28 | #include "platform.h" |
32 | #include "gnunet_util_lib.h" | 29 | #include "gnunet_util_lib.h" |
33 | 30 | ||
31 | #undef GNUNET_EXTRA_LOGGING | ||
32 | #define GNUNET_EXTRA_LOGGING GNUNET_YES | ||
33 | |||
34 | /** | 34 | /** |
35 | * Artificial delay attached to each log call that is not skipped out. | 35 | * Artificial delay attached to each log call that is not skipped out. |
36 | * This must be long enough for us to not to mistake skipped log call | 36 | * This must be long enough for us to not to mistake skipped log call |