diff options
author | Daniel P. Berrange <berrange@redhat.com> | 2008-05-29 15:31:49 +0000 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2008-05-29 15:31:49 +0000 |
commit | 4b234955093962b18b8ddec828c660cb810bd314 (patch) | |
tree | f83ca8855dece625d8f21d000e7e792dd358bf53 /tests/statstest.c | |
parent | Misc OOM / memory leak fixes (diff) | |
download | libvirt-4b234955093962b18b8ddec828c660cb810bd314.tar.gz libvirt-4b234955093962b18b8ddec828c660cb810bd314.tar.bz2 libvirt-4b234955093962b18b8ddec828c660cb810bd314.zip |
Convert test suites over to new test infrastructure
Diffstat (limited to 'tests/statstest.c')
-rw-r--r-- | tests/statstest.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/statstest.c b/tests/statstest.c index 8b5e67747..c2c3f288b 100644 --- a/tests/statstest.c +++ b/tests/statstest.c @@ -45,8 +45,9 @@ static int testDeviceHelper(const void *data) #endif -int -main(void) +static int +mymain(int argc ATTRIBUTE_UNUSED, + char **argv ATTRIBUTE_UNUSED) { int ret = 0; #if __linux__ && WITH_XEN @@ -54,7 +55,7 @@ main(void) * register a handler to stop error messages cluttering * up display */ - if (!getenv("DEBUG_TESTS")) + if (!getenv("VIR_TEST_DEBUG")) virSetErrorFunc(NULL, testQuietError); #define DO_TEST(dev, num) \ @@ -177,5 +178,7 @@ main(void) DO_TEST("/dev/xvda15", 51727); #endif - exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); + return(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE); } + +VIRT_TEST_MAIN(mymain) |