fix testcase

This commit is contained in:
Christian Grothoff 2016-05-02 09:06:16 +02:00
parent 08ef15ec94
commit 5852baa7e9
4 changed files with 8 additions and 8 deletions

View File

@ -51,7 +51,7 @@ run (void *cls)
}; };
TBI_run_interpreter (resultp, TBI_run_interpreter (resultp,
0 /* we use the "real" taler bank */, GNUNET_NO /* we use the "real" taler bank */,
commands); commands);
} }

View File

@ -51,7 +51,7 @@ run (void *cls)
}; };
TBI_run_interpreter (resultp, TBI_run_interpreter (resultp,
8080, GNUNET_YES,
commands); commands);
} }

View File

@ -330,19 +330,19 @@ do_shutdown (void *cls)
* Entry point to the interpeter. * Entry point to the interpeter.
* *
* @param resultp where to store the final result * @param resultp where to store the final result
* @param bank_port on which port to launch the bank, 0 for none * @param run_bank #GNUNET_YES to run the fakebank
* @param commands list of commands to run * @param commands list of commands to run
*/ */
void void
TBI_run_interpreter (int *resultp, TBI_run_interpreter (int *resultp,
uint16_t bank_port, int run_bank,
struct TBI_Command *commands) struct TBI_Command *commands)
{ {
struct InterpreterState *is; struct InterpreterState *is;
is = GNUNET_new (struct InterpreterState); is = GNUNET_new (struct InterpreterState);
if (0 != bank_port) if (GNUNET_YES == run_bank)
is->fakebank = FAKEBANK_start (bank_port); is->fakebank = FAKEBANK_start (8081);
is->resultp = resultp; is->resultp = resultp;
is->commands = commands; is->commands = commands;
is->ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule, is->ctx = GNUNET_CURL_init (&GNUNET_CURL_gnunet_scheduler_reschedule,

View File

@ -116,12 +116,12 @@ struct TBI_Command
* Entry point to the interpeter. * Entry point to the interpeter.
* *
* @param resultp where to store the final result * @param resultp where to store the final result
* @param bank_port on which port to launch the bank, 0 for none * @param run_bank #GNUNET_YES to run the fakebank
* @param commands list of commands to run * @param commands list of commands to run
*/ */
void void
TBI_run_interpreter (int *resultp, TBI_run_interpreter (int *resultp,
uint16_t bank_port, int run_bank,
struct TBI_Command *commands); struct TBI_Command *commands);
#endif #endif