aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2011-12-01 13:47:34 -0700
committerEric Blake <eblake@redhat.com>2011-12-01 13:49:20 -0700
commitda8061eefeb6e75c3a67b2081c57195549aa1075 (patch)
treef7469645eff7eb01dfa8a0a828f094d4f683fc6c
parentAvoid crash in shunloadtest (diff)
downloadlibvirt-da8061eefeb6e75c3a67b2081c57195549aa1075.tar.gz
libvirt-da8061eefeb6e75c3a67b2081c57195549aa1075.tar.bz2
libvirt-da8061eefeb6e75c3a67b2081c57195549aa1075.zip
build: properly skip tests
I got this failure on FreeBSD: shunloadtest.c: In function 'main': shunloadtest.c:150: error: 'EXIT_AM_SKIP' undeclared (first use in this function) but inspection showed several other problems, all fixed here. * tests/domainsnapshotxml2xmltest.c [!WITH_QEMU]: Ensure EXIT_AM_SKIP is defined. * tests/esxutilstest.c [!WITH_ESX]: Likewise. * tests/openvzutilstest.c [!WITH_OPENVZ]: Likewise. * tests/qemuargv2xmltest.c [!WITH_QEMU]: Likewise. * tests/qemuhelptest.c [!WITH_QEMU]: Likewise. * tests/qemuxml2argvtest.c [!WITH_QEMU]: Likewise. * tests/qemuxml2xmltest.c [!WITH_QEMU]: Likewise. * tests/qemuxmlnstest.c [!WITH_QEMU]: Likewise. * tests/shunloadtest.c [!linux]: Likewise. * tests/vmx2xmltest.c [!WITH_VMX]: Likewise. * tests/xml2vmxtest.c [!WITH_VMX]: Likewise.
-rw-r--r--tests/domainsnapshotxml2xmltest.c1
-rw-r--r--tests/esxutilstest.c1
-rw-r--r--tests/openvzutilstest.c1
-rw-r--r--tests/qemuargv2xmltest.c1
-rw-r--r--tests/qemuhelptest.c1
-rw-r--r--tests/qemuxml2argvtest.c1
-rw-r--r--tests/qemuxml2xmltest.c1
-rw-r--r--tests/qemuxmlnstest.c1
-rw-r--r--tests/shunloadtest.c1
-rw-r--r--tests/vmx2xmltest.c1
-rw-r--r--tests/xml2vmxtest.c1
11 files changed, 11 insertions, 0 deletions
diff --git a/tests/domainsnapshotxml2xmltest.c b/tests/domainsnapshotxml2xmltest.c
index c2266f4eb..90ff9bb37 100644
--- a/tests/domainsnapshotxml2xmltest.c
+++ b/tests/domainsnapshotxml2xmltest.c
@@ -118,6 +118,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int
main(void)
diff --git a/tests/esxutilstest.c b/tests/esxutilstest.c
index 8241ecd73..201b930ed 100644
--- a/tests/esxutilstest.c
+++ b/tests/esxutilstest.c
@@ -279,6 +279,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/openvzutilstest.c b/tests/openvzutilstest.c
index f04ddbbce..7f5ddc9bc 100644
--- a/tests/openvzutilstest.c
+++ b/tests/openvzutilstest.c
@@ -160,6 +160,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/qemuargv2xmltest.c b/tests/qemuargv2xmltest.c
index a20df067d..cb3cafdc4 100644
--- a/tests/qemuargv2xmltest.c
+++ b/tests/qemuargv2xmltest.c
@@ -243,6 +243,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int
main(void)
diff --git a/tests/qemuhelptest.c b/tests/qemuhelptest.c
index df677cc5e..cc9f1ad47 100644
--- a/tests/qemuhelptest.c
+++ b/tests/qemuhelptest.c
@@ -578,6 +578,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/qemuxml2argvtest.c b/tests/qemuxml2argvtest.c
index e75d55e74..228d052de 100644
--- a/tests/qemuxml2argvtest.c
+++ b/tests/qemuxml2argvtest.c
@@ -669,6 +669,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/qemuxml2xmltest.c b/tests/qemuxml2xmltest.c
index 623e72cca..35bfdcebc 100644
--- a/tests/qemuxml2xmltest.c
+++ b/tests/qemuxml2xmltest.c
@@ -211,6 +211,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int
main(void)
diff --git a/tests/qemuxmlnstest.c b/tests/qemuxmlnstest.c
index ee3ad1b08..86cf9740c 100644
--- a/tests/qemuxmlnstest.c
+++ b/tests/qemuxmlnstest.c
@@ -284,6 +284,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/shunloadtest.c b/tests/shunloadtest.c
index ab6e56fce..8113ef37d 100644
--- a/tests/shunloadtest.c
+++ b/tests/shunloadtest.c
@@ -144,6 +144,7 @@ int main(int argc ATTRIBUTE_UNUSED, char **argv)
}
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/vmx2xmltest.c b/tests/vmx2xmltest.c
index 5c0018a5c..3c566f898 100644
--- a/tests/vmx2xmltest.c
+++ b/tests/vmx2xmltest.c
@@ -289,6 +289,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{
diff --git a/tests/xml2vmxtest.c b/tests/xml2vmxtest.c
index 5530b45a8..f4e4ed6b6 100644
--- a/tests/xml2vmxtest.c
+++ b/tests/xml2vmxtest.c
@@ -301,6 +301,7 @@ mymain(void)
VIRT_TEST_MAIN(mymain)
#else
+# include "testutils.h"
int main(void)
{