1.1 --- a/libgnomevfs2-mythtv/tests/Makefile.am Fri May 11 14:41:11 2007 +0100
1.2 +++ b/libgnomevfs2-mythtv/tests/Makefile.am Fri May 11 15:03:21 2007 +0100
1.3 @@ -4,12 +4,12 @@
1.4 test_SOURCES = \
1.5 main.c
1.6
1.7 -INCLUDES = \
1.8 +AM_CPPFLAGS = \
1.9 $(GLIB_CFLAGS) \
1.10 $(GOBJECT_CFLAGS) \
1.11 $(GNOME_VFS_CFLAGS)
1.12
1.13 -LDADD = \
1.14 +test_LDADD = \
1.15 $(GLIB_LIBS) \
1.16 $(GOBJECT_LIBS) \
1.17 $(GNOME_VFS_LIBS)
2.1 --- a/libgnomevfs2-mythtv/tests/main.c Fri May 11 14:41:11 2007 +0100
2.2 +++ b/libgnomevfs2-mythtv/tests/main.c Fri May 11 15:03:21 2007 +0100
2.3 @@ -1,6 +1,6 @@
2.4 -
2.5 -#include <libgnomevfs/gnome-vfs-module.h>
2.6 -#include <libgnomevfs/gnome-vfs-utils.h>
2.7 +#include <stdlib.h>
2.8 +#include <string.h>
2.9 +#include <libgnomevfs/gnome-vfs.h>
2.10 #include <glib.h>
2.11
2.12 static void
2.13 @@ -12,14 +12,12 @@
2.14 }
2.15 }
2.16
2.17 -
2.18 -
2.19 int main (int argc, char** argv)
2.20 {
2.21 GnomeVFSResult result;
2.22 GnomeVFSFileSize read;
2.23 gchar buff[512];
2.24 - GnomeVFSHandle *handle;
2.25 + GnomeVFSHandle *handle = NULL;
2.26
2.27
2.28 g_assert (argc == 2);
2.29 @@ -32,9 +30,12 @@
2.30 assert_message (result == GNOME_VFS_OK,
2.31 gnome_vfs_result_to_string (result));
2.32
2.33 + g_debug ("handle %p", handle);
2.34 +
2.35 while (result == GNOME_VFS_OK) {
2.36 memset (buff, '\0', sizeof (buff));
2.37 result = gnome_vfs_read (handle, buff, sizeof (buff), &read);
2.38 + g_debug ("read %"G_GINT64_FORMAT, read);
2.39 }
2.40
2.41 assert_message (result == GNOME_VFS_ERROR_EOF,