If a test fails, it's stderr is caught in the logs. That's how our CI works. But virReportError() is not. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- tests/virhostdevtest.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/virhostdevtest.c b/tests/virhostdevtest.c index b64ba58923..209cde5419 100644 --- a/tests/virhostdevtest.c +++ b/tests/virhostdevtest.c @@ -38,9 +38,8 @@ VIR_LOG_INIT("tests.hostdevtest"); do { \ size_t actualCount; \ if ((actualCount = cb(list)) != cnt) { \ - virReportError(VIR_ERR_INTERNAL_ERROR, \ - "Unexpected count of items in " #list ": %zu, " \ - "expecting %zu", actualCount, (size_t) cnt); \ + fprintf(stderr, "Unexpected count of items in " #list ": %zu, " \ + "expecting %zu", actualCount, (size_t) cnt); \ return -1; \ } \ } while (0) -- 2.21.0 -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list