diff options
author | Cole Robinson <crobinso@redhat.com> | 2009-10-16 11:37:36 -0400 |
---|---|---|
committer | Cole Robinson <crobinso@redhat.com> | 2009-10-20 14:17:34 -0400 |
commit | 9710856b3316328c7b3ba6d3264f67c1f5d710e4 (patch) | |
tree | 0e16523e9517c532d87e3f62c5a05c73459229b3 /tests/testutils.h | |
parent | tests: Initialize virRandom in for test suite. (diff) | |
download | libvirt-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/testutils.h')
-rw-r--r-- | tests/testutils.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/testutils.h b/tests/testutils.h index f036e0f13..aef11795e 100644 --- a/tests/testutils.h +++ b/tests/testutils.h @@ -34,6 +34,8 @@ int virtTestDifference(FILE *stream, const char *expect, const char *actual); +unsigned int virtTestGetDebug(void); + int virtTestMain(int argc, char **argv, int (*func)(int, char **)); @@ -43,6 +45,4 @@ int virtTestMain(int argc, return virtTestMain(argc,argv, func); \ } -extern unsigned int testDebug; - #endif /* __VIT_TEST_UTILS_H__ */ |