diff options
author | Richard W.M. Jones <rjones@redhat.com> | 2011-03-16 11:50:16 +0000 |
---|---|---|
committer | Richard W.M. Jones <rjones@redhat.com> | 2011-03-16 11:50:16 +0000 |
commit | eb6119da38ed98f9fe902401614c2d14ed20bb2e (patch) | |
tree | 78110818cf01f4c135f7c13c110cb0bf988d416b | |
parent | 6bb4d13d718d17ee89602acb97c46bc4d4a38d02 (diff) | |
download | libguestfs-eb6119da38ed98f9fe902401614c2d14ed20bb2e.tar.gz libguestfs-eb6119da38ed98f9fe902401614c2d14ed20bb2e.tar.xz libguestfs-eb6119da38ed98f9fe902401614c2d14ed20bb2e.zip |
tests: Ignore return value from fwrite.
-rw-r--r-- | capitests/Makefile.am | 4 | ||||
-rw-r--r-- | capitests/test-debug-to-file.c | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/capitests/Makefile.am b/capitests/Makefile.am index 89d29e0b..487a33f9 100644 --- a/capitests/Makefile.am +++ b/capitests/Makefile.am @@ -117,9 +117,11 @@ test_private_data_LDADD = \ test_debug_to_file_SOURCES = test-debug-to-file.c test_debug_to_file_CFLAGS = \ -I$(top_srcdir)/src -I$(top_builddir)/src \ + -I$(top_srcdir)/gnulib/lib \ $(WARN_CFLAGS) $(WERROR_CFLAGS) test_debug_to_file_LDADD = \ - $(top_builddir)/src/libguestfs.la + $(top_builddir)/src/libguestfs.la \ + ../gnulib/lib/libgnu.la #if HAVE_LIBVIRT #test_add_libvirt_dom_SOURCES = test-add-libvirt-dom.c diff --git a/capitests/test-debug-to-file.c b/capitests/test-debug-to-file.c index 6d1b619e..5eb56104 100644 --- a/capitests/test-debug-to-file.c +++ b/capitests/test-debug-to-file.c @@ -27,6 +27,8 @@ #include <string.h> #include <unistd.h> +#include "ignore-value.h" + #include "guestfs.h" static void @@ -40,7 +42,7 @@ debug_to_file (guestfs_h *g, { FILE *fp = opaque; - fwrite (buf, 1, buf_len, fp); + ignore_value (fwrite (buf, 1, buf_len, fp)); } int |