diff options
author | Christian Grothoff <christian@grothoff.org> | 2021-11-19 11:47:52 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2021-11-19 11:47:52 +0100 |
commit | 68a4d901347bfa159adfe67e00f149e09800ea22 (patch) | |
tree | 9f966c9c1ea7f15954552d0832a7ef1414549735 /src/testing | |
parent | bdaaa0f6cb8f99168ed9916064a5e4145426480c (diff) | |
download | exchange-68a4d901347bfa159adfe67e00f149e09800ea22.tar.xz |
-misc bugfixes
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/testing_api_cmd_deposit.c | 16 | ||||
-rw-r--r-- | src/testing/testing_api_loop.c | 7 |
2 files changed, 14 insertions, 9 deletions
diff --git a/src/testing/testing_api_cmd_deposit.c b/src/testing/testing_api_cmd_deposit.c index 29b2ce64a..cb6dfc0b2 100644 --- a/src/testing/testing_api_cmd_deposit.c +++ b/src/testing/testing_api_cmd_deposit.c @@ -613,16 +613,20 @@ TALER_TESTING_cmd_deposit (const char *label, ds->wallet_timestamp = GNUNET_TIME_absolute_get (); (void) GNUNET_TIME_round_abs (&ds->wallet_timestamp); - json_object_set_new (ds->contract_terms, - "timestamp", - GNUNET_JSON_from_time_abs (ds->wallet_timestamp)); + GNUNET_assert (0 == + json_object_set_new (ds->contract_terms, + "timestamp", + GNUNET_JSON_from_time_abs ( + ds->wallet_timestamp))); if (0 != refund_deadline.rel_value_us) { ds->refund_deadline = GNUNET_TIME_relative_to_absolute (refund_deadline); (void) GNUNET_TIME_round_abs (&ds->refund_deadline); - json_object_set_new (ds->contract_terms, - "refund_deadline", - GNUNET_JSON_from_time_abs (ds->refund_deadline)); + GNUNET_assert (0 == + json_object_set_new (ds->contract_terms, + "refund_deadline", + GNUNET_JSON_from_time_abs ( + ds->refund_deadline))); } GNUNET_assert (GNUNET_OK == TALER_string_to_amount (amount, diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index d8d32f6df..7a25bed64 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c @@ -389,9 +389,10 @@ maint_child_death (void *cls) GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, "Got the dead child process handle, waiting for termination ...\n"); - GNUNET_OS_process_wait_status (*processp, - &type, - &code); + GNUNET_assert (GNUNET_OK == + GNUNET_OS_process_wait_status (*processp, + &type, + &code)); GNUNET_OS_process_destroy (*processp); *processp = NULL; GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, |