From 57351139a7b2e0ced1f54f4fc15782f3941d1a21 Mon Sep 17 00:00:00 2001 From: "Daniel P. Berrange" Date: Thu, 29 Mar 2012 10:50:00 +0100 Subject: [PATCH] Disable build of commandhelper & ssh on Win32 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 --- tests/commandhelper.c | 13 +++++++++++++ tests/ssh.c | 13 +++++++++++++ 2 files changed, 26 insertions(+) diff --git a/tests/commandhelper.c b/tests/commandhelper.c index 71d93becf2..a80d191ca7 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 08bb63d8a1..49b6bce0b4 100644 --- a/tests/ssh.c +++ b/tests/ssh.c @@ -22,6 +22,9 @@ #include #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