On Wed, Jul 15, 2009 at 11:24:59AM +0100, Daniel P. Berrange wrote: > On Wed, Jul 15, 2009 at 11:20:00AM +0200, Daniel Veillard wrote: > > Basic stuff similar to other tests, first we verify the input tests > > all conform to the provided schemas, then for each test we parse and > > reserialize verifying the output is identical. > > ACK, good stuff. > > + fail: > > + if (ret != 0) > > + fprintf(stderr, "expected: -------\n%s", actual); > > > BTW, you don't need this fprintf when using virtTestDifference. > If you set VIR_TEST_DEBUG=2 then it will print out the full > XML being compared automatically :-) Oops I knew I had forgotten a debugging output it escaped, good catch ! Daniel -- Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/ daniel@xxxxxxxxxxxx | Rpmfind RPM search engine http://rpmfind.net/ http://veillard.com/ | virtualization library http://libvirt.org/ -- Libvir-list mailing list Libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list