Mon Nov 26 12:03:00 UTC 2007 Richard W.M. Jones <rjones@redhat.com>

* tests/Makefile.am, tests/nodeinfotest.c, tests/qemuxml2argvtest.c,
	  tests/qemuxml2xmltest.c, tests/sexpr2xmltest.c, tests/virshtest.c,
	  tests/xencapstest.c, tests/xmconfigtest.c, tests/xml2sexprtest.c:
	  Miscellaneous fixes to the tests to compile under Cygwin.
This commit is contained in:
Richard W.M. Jones
2007-11-26 12:03:34 +00:00
parent fe9d013c3e
commit b7641686a6
10 changed files with 85 additions and 13 deletions

View File

@@ -1,9 +1,19 @@
#include "config.h"
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <sys/types.h>
#include <fcntl.h>
#ifdef HAVE_SYS_SYSLIMITS_H
#include <sys/syslimits.h>
#endif
#ifdef WITH_QEMU
#include "testutils.h"
#include "qemu_conf.h"
#include "internal.h"
@@ -150,6 +160,12 @@ main(int argc, char **argv)
exit(ret==0 ? EXIT_SUCCESS : EXIT_FAILURE);
}
#else
int main (void) { exit (77); /* means 'test skipped' to automake */ }
#endif /* WITH_QEMU */
/*
* Local variables:
* indent-tabs-mode: nil