]> xenbits.xensource.com Git - libvirt.git/commitdiff
Disable build of commandhelper & ssh on Win32
authorDaniel P. Berrange <berrange@redhat.com>
Thu, 29 Mar 2012 09:50:00 +0000 (10:50 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Fri, 30 Mar 2012 10:47:14 +0000 (11:47 +0100)
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@redhat.com>
tests/commandhelper.c
tests/ssh.c

index 71d93becf28e26b9a05dc7fd7b13c5aeb36b0d11..a80d191ca7defc85a07a5295c82352cab03caf0c 100644 (file)
@@ -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
index 08bb63d8a1672ff67ce8725992cf424f43cd0d86..49b6bce0b40b9f08baafdd8c655bc6cdd1a84c44 100644 (file)
@@ -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