check return values

This commit is contained in:
Christian Grothoff 2015-05-18 20:18:37 +02:00
parent 7b4623706c
commit c742db86c4

View File

@ -122,12 +122,14 @@ run_queries (PGconn *conn)
sig = GNUNET_CRYPTO_rsa_sign (priv, sig = GNUNET_CRYPTO_rsa_sign (priv,
msg, msg,
sizeof (msg)); sizeof (msg));
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount ("EUR:5.5", TALER_string_to_amount ("EUR:5.5",
&hamount); &hamount));
TALER_amount_hton (&namount, TALER_amount_hton (&namount,
&hamount); &hamount);
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount ("EUR:4.4", TALER_string_to_amount ("EUR:4.4",
&hamount); &hamount));
/* FIXME: test TALER_PQ_result_spec_variable_size */ /* FIXME: test TALER_PQ_result_spec_variable_size */
{ {
struct TALER_PQ_QueryParam params_insert[] = { struct TALER_PQ_QueryParam params_insert[] = {
@ -198,8 +200,9 @@ run_queries (PGconn *conn)
GNUNET_break (0 == GNUNET_break (0 ==
TALER_amount_cmp (&hamount, TALER_amount_cmp (&hamount,
&hamount2)); &hamount2));
GNUNET_assert (GNUNET_OK ==
TALER_string_to_amount ("EUR:5.5", TALER_string_to_amount ("EUR:5.5",
&hamount); &hamount));
TALER_amount_ntoh (&hamount2, TALER_amount_ntoh (&hamount2,
&namount2); &namount2);
GNUNET_break (0 == GNUNET_break (0 ==