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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

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@xxxxxxxxxx>
---
 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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]