]> xenbits.xensource.com Git - people/dariof/libvirt.git/commit
tests: consistently use virFilePrintf
authorEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 18:01:19 +0000 (12:01 -0600)
committerEric Blake <eblake@redhat.com>
Mon, 29 Jul 2013 18:06:05 +0000 (12:06 -0600)
commit93ec384b6636f7a62fce23ed0ab4023b65493480
treee07c5b07e8b613a942810745f03c15670619e6ab
parent524f52c305b0e1e730994bd308d0d2d5d43bf2c2
tests: consistently use virFilePrintf

Commit a2619962 introduced virFilePrintf to work around the fact
that gnulib doesn't (yet) provide guarantees about fprintf() vs.
%z, which in turn causes all sorts of mingw compilation errors:

../../tests/testutils.c: In function 'virtTestResult':
../../tests/testutils.c:101:9: error: unknown conversion type character 'z' in format [-Werror=format=]
         fprintf(stderr, "%3zu) %-60s ", testCounter, name);
         ^

Rather than s/fprintf/virFilePrintf/ (and reformatting loads of
lines) across multiple files, it's easier to just hack the entire
testsuite to take advantage of our helper function.

* tests/testutils.c: s/fprintf/virFilePrintf/ for mingw.

Signed-off-by: Eric Blake <eblake@redhat.com>
tests/testutils.h