X-Git-Url: https://sigrok.org/gitweb/?a=blobdiff_plain;f=tests%2Fruntc.c;h=e376070bb1f7038655816cee075dd93007b74760;hb=d45058e87e7045fef1b7c4425de1917a554545f7;hp=25b4e389f0cfe46e022568e3bb0b4d3157e6704f;hpb=6a15597a7b3f901b566b7bfc8c484a14e0fb6a11;p=libsigrokdecode.git diff --git a/tests/runtc.c b/tests/runtc.c index 25b4e38..e376070 100644 --- a/tests/runtc.c +++ b/tests/runtc.c @@ -327,7 +327,7 @@ static int run_testcase(char *infile, GSList *pdlist, struct output *op) struct srd_session *sess; struct srd_decoder *dec; struct srd_decoder_inst *di, *prev_di; - srd_pd_output_callback_t cb; + srd_pd_output_callback cb; struct pd *pd; struct channel *channel; struct option *option; @@ -688,8 +688,8 @@ int main(int argc, char **argv) struct channel *channel; struct option *option; struct output *op; - int ret; - char c, *opt_infile, **kv, **opstr; + int ret, c; + char *opt_infile, **kv, **opstr; op = malloc(sizeof(struct output)); op->pd = NULL; @@ -759,6 +759,9 @@ int main(int argc, char **argv) op->type = SRD_OUTPUT_BINARY; else if (!strcmp(opstr[1], "python")) op->type = SRD_OUTPUT_PYTHON; + else if (!strcmp(opstr[1], "exception")) + /* Doesn't matter, we just need it to bomb out. */ + op->type = SRD_OUTPUT_PYTHON; else { ERR("Unknown output type '%s'", opstr[1]); g_strfreev(opstr);