diff options
author | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:51:29 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2019-10-05 15:51:29 +0200 |
commit | 6a0d1b7df0afefa5468c35c7bcbb4a0fa3a0b46e (patch) | |
tree | 9e2aa0cbdfde705bafcfa71bc88442a8b073ad5b /src/lib/testing_api_helpers.c | |
parent | 54bde12c0295e008e050a8418c4702b8f3ea4a55 (diff) |
reindenting with uncrustify
Diffstat (limited to 'src/lib/testing_api_helpers.c')
-rw-r--r-- | src/lib/testing_api_helpers.c | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/lib/testing_api_helpers.c b/src/lib/testing_api_helpers.c index 2d1a9317..520600fb 100644 --- a/src/lib/testing_api_helpers.c +++ b/src/lib/testing_api_helpers.c @@ -72,22 +72,22 @@ TALER_TESTING_run_merchant (const char *config_filename, "Waiting for `taler-merchant-httpd' to be ready\n"); iter = 0; do + { + if (10 == iter) { - if (10 == iter) - { - fprintf (stderr, - "Failed to launch" - " `taler-merchant-httpd' (or `wget')\n"); - GNUNET_OS_process_kill (merchant_proc, - SIGTERM); - GNUNET_OS_process_wait (merchant_proc); - GNUNET_OS_process_destroy (merchant_proc); - MERCHANT_FAIL (); - } - fprintf (stderr, ".\n"); - sleep (1); - iter++; + fprintf (stderr, + "Failed to launch" + " `taler-merchant-httpd' (or `wget')\n"); + GNUNET_OS_process_kill (merchant_proc, + SIGTERM); + GNUNET_OS_process_wait (merchant_proc); + GNUNET_OS_process_destroy (merchant_proc); + MERCHANT_FAIL (); } + fprintf (stderr, ".\n"); + sleep (1); + iter++; + } while (0 != system (wget_cmd)); GNUNET_free (wget_cmd); fprintf (stderr, "\n"); @@ -141,20 +141,20 @@ TALER_TESTING_prepare_merchant (const char *config_filename) { fprintf (stderr, "Required port %llu not available, skipping.\n", - port); + port); MERCHANT_FAIL (); } /* DB preparation */ if (NULL == (dbinit_proc = GNUNET_OS_start_process - (GNUNET_NO, - GNUNET_OS_INHERIT_STD_ALL, - NULL, NULL, NULL, - "taler-merchant-dbinit", - "taler-merchant-dbinit", - "-c", config_filename, - "-r", - NULL))) + (GNUNET_NO, + GNUNET_OS_INHERIT_STD_ALL, + NULL, NULL, NULL, + "taler-merchant-dbinit", + "taler-merchant-dbinit", + "-c", config_filename, + "-r", + NULL))) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Failed to run taler-merchant-dbinit." |