[libvirt] [PATCH 4/4] Disable build of commandhelper & ssh on Win32

Daniel P. Berrange berrange at redhat.com
Thu Mar 29 09:53:16 UTC 2012


From: "Daniel P. Berrange" <berrange at redhat.com>

The commandhelper.c & ssh.c programs rely on various APIs not present
on Win32. Disable them, since the tests that uses these helpers are
already disabled

* tests/commandhelper.c, tests/ssh.c: Disable on WIN32

Signed-off-by: Daniel P. Berrange <berrange at redhat.com>
---
 tests/commandhelper.c |   13 +++++++++++++
 tests/ssh.c           |   13 +++++++++++++
 2 files changed, 26 insertions(+), 0 deletions(-)

diff --git a/tests/commandhelper.c b/tests/commandhelper.c
index 71d93be..a80d191 100644
--- a/tests/commandhelper.c
+++ b/tests/commandhelper.c
@@ -30,6 +30,9 @@
 #include "util.h"
 #include "memory.h"
 #include "virfile.h"
+#include "testutils.h"
+
+#ifndef WIN32
 
 
 static int envsort(const void *a, const void *b) {
@@ -140,3 +143,13 @@ int main(int argc, char **argv) {
 error:
     return EXIT_FAILURE;
 }
+
+#else
+
+int
+main(void)
+{
+    return EXIT_AM_SKIP;
+}
+
+#endif
diff --git a/tests/ssh.c b/tests/ssh.c
index 08bb63d..49b6bce 100644
--- a/tests/ssh.c
+++ b/tests/ssh.c
@@ -22,6 +22,9 @@
 
 #include <stdio.h>
 #include "internal.h"
+#include "testutils.h"
+
+#ifndef WIN32
 
 int main(int argc, char **argv)
 {
@@ -52,3 +55,13 @@ int main(int argc, char **argv)
 
     return 0;
 }
+
+#else
+
+int
+main(void)
+{
+    return EXIT_AM_SKIP;
+}
+
+#endif
-- 
1.7.7.6




More information about the libvir-list mailing list