summaryrefslogtreecommitdiff
path: root/tests/shunloadtest.c
diff options
context:
space:
mode:
authorEric Blake <eblake@redhat.com>2013-07-29 13:06:27 -0600
committerEric Blake <eblake@redhat.com>2013-07-29 13:09:39 -0600
commit87c0eab48dea69f8d5309041285d5bfbf6576931 (patch)
treec2d17aa57eb342ad83f34c65a7635d019c6537c4 /tests/shunloadtest.c
parent6f4458a017789535ee4a62fc6b5b846dec0499c9 (diff)
downloadlibvirt-87c0eab48dea69f8d5309041285d5bfbf6576931.tar.gz
build: fix shunloadtest breakage
Commit 93ec384 was tested on mingw, but broke the build on Linux: CCLD shunloadtest shunloadtest.o: In function `main': /home/eblake/libvirt/tests/shunloadtest.c:106: undefined reference to `virFilePrintf' ... ssh.o: In function `main': /home/eblake/libvirt/tests/ssh.c:43: undefined reference to `virFilePrintf' /home/eblake/libvirt/tests/ssh.c:49: undefined reference to `virFilePrintf' * tests/testutils.h (fprintf): Provide escape hatch. * tests/shunloadtest.c: Use it. * tests/ssh.c: Likewise. Signed-off-by: Eric Blake <eblake@redhat.com>
Diffstat (limited to 'tests/shunloadtest.c')
-rw-r--r--tests/shunloadtest.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/shunloadtest.c b/tests/shunloadtest.c
index 8190e97a75..499b1be5d4 100644
--- a/tests/shunloadtest.c
+++ b/tests/shunloadtest.c
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2011 Red Hat, Inc.
+ * Copyright (C) 2011, 2013 Red Hat, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
@@ -40,6 +40,7 @@
#include <config.h>
+#define NO_LIBVIRT /* This file intentionally does not link to libvirt */
#include "testutils.h"
#ifdef linux