summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCole Robinson <crobinso@redhat.com>2009-10-16 11:37:36 -0400
committerCole Robinson <crobinso@redhat.com>2009-10-20 14:17:34 -0400
commit9710856b3316328c7b3ba6d3264f67c1f5d710e4 (patch)
tree0e16523e9517c532d87e3f62c5a05c73459229b3 /tests/interfacexml2xmltest.c
parenttests: Initialize virRandom in for test suite. (diff)
downloadlibvirt-9710856b3316328c7b3ba6d3264f67c1f5d710e4.tar.gz
libvirt-9710856b3316328c7b3ba6d3264f67c1f5d710e4.tar.bz2
libvirt-9710856b3316328c7b3ba6d3264f67c1f5d710e4.zip
tests: Centralize VIR_TEST_DEBUG lookup, and document it
Provide a simple interface for other tests to lookup the testDebug variable. Also remove a redundant error message in interface tests. If anyone feels inclined to change this env variable to match the existing LIBVIRT_* format, it should now be easier to do so.
Diffstat (limited to 'tests/interfacexml2xmltest.c')
-rw-r--r--tests/interfacexml2xmltest.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/tests/interfacexml2xmltest.c b/tests/interfacexml2xmltest.c
index 5ffebad31..ed3093c3a 100644
--- a/tests/interfacexml2xmltest.c
+++ b/tests/interfacexml2xmltest.c
@@ -43,8 +43,6 @@ static int testCompareXMLToXMLFiles(const char *xml) {
ret = 0;
fail:
- if (ret != 0)
- fprintf(stderr, "expected: -------\n%s", actual);
free(actual);
virInterfaceDefFree(dev);
return ret;