git-svn-id: svn+ssh://scm.gforge.inria.fr/svn/simgrid/simgrid/trunk@3584
48e7efb5-ca39-0410-a469-
dd3cf9ba447f
$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
> Test suite from stdin
> [stdin:3] cat
$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
> Test suite from stdin
> [stdin:3] cat
+> Output of <stdin:3> mismatch:
> - TOTO
> + TUTU
> Test suite `(stdin)': NOK (<stdin:3> output mismatch)
> - TOTO
> + TUTU
> Test suite `(stdin)': NOK (<stdin:3> output mismatch)
}
/* Cleanup the place */
}
/* Cleanup the place */
- xbt_dynar_free(&bg_jobs);
+ // xbt_dynar_free(&bg_jobs);
|| strcmp(rctx->output_got->data, rctx->output_wanted->data))) {
if (XBT_LOG_ISENABLED(tesh,xbt_log_priority_info)) {
char *diff= xbt_str_diff(rctx->output_wanted->data,rctx->output_got->data);
|| strcmp(rctx->output_got->data, rctx->output_wanted->data))) {
if (XBT_LOG_ISENABLED(tesh,xbt_log_priority_info)) {
char *diff= xbt_str_diff(rctx->output_wanted->data,rctx->output_got->data);
- ERROR1("Output mismatch:\n%s",
- diff);
+ ERROR2("Output of <%s> mismatch:\n%s",rctx->filepos,diff);
free(diff);
}
ERROR2("Test suite `%s': NOK (<%s> output mismatch)",
free(diff);
}
ERROR2("Test suite `%s': NOK (<%s> output mismatch)",
errcode=2;
} else if (rctx->output == e_output_ignore) {
errcode=2;
} else if (rctx->output == e_output_ignore) {
- INFO0("(ignoring the output as requested)");
+ INFO1("(ignoring the output of <%s> as requested)",rctx->filepos);
} else if (rctx->output == e_output_display) {
xbt_dynar_t a = xbt_str_split(rctx->output_got->data, "\n");
char *out = xbt_str_join(a,"\n||");
} else if (rctx->output == e_output_display) {
xbt_dynar_t a = xbt_str_split(rctx->output_got->data, "\n");
char *out = xbt_str_join(a,"\n||");
$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
> Test suite from stdin
> [stdin:4] cat
$ ./tesh --log='log.thresh:info tesh.fmt:%m%n'
> Test suite from stdin
> [stdin:4] cat
-> (ignoring the output as requested)
+> (ignoring the output of <stdin:4> as requested)
> Test suite from stdin OK
> Test suite from stdin OK