1.1 --- a/libgnomevfs2-mythtv/tests/main.c Fri May 11 14:41:11 2007 +0100
1.2 +++ b/libgnomevfs2-mythtv/tests/main.c Tue May 15 22:14:04 2007 +0100
1.3 @@ -1,6 +1,6 @@
1.4 -
1.5 -#include <libgnomevfs/gnome-vfs-module.h>
1.6 -#include <libgnomevfs/gnome-vfs-utils.h>
1.7 +#include <stdlib.h>
1.8 +#include <string.h>
1.9 +#include <libgnomevfs/gnome-vfs.h>
1.10 #include <glib.h>
1.11
1.12 static void
1.13 @@ -12,14 +12,12 @@
1.14 }
1.15 }
1.16
1.17 -
1.18 -
1.19 int main (int argc, char** argv)
1.20 {
1.21 GnomeVFSResult result;
1.22 GnomeVFSFileSize read;
1.23 gchar buff[512];
1.24 - GnomeVFSHandle *handle;
1.25 + GnomeVFSHandle *handle = NULL;
1.26
1.27
1.28 g_assert (argc == 2);
1.29 @@ -32,9 +30,12 @@
1.30 assert_message (result == GNOME_VFS_OK,
1.31 gnome_vfs_result_to_string (result));
1.32
1.33 + g_debug ("handle %p", handle);
1.34 +
1.35 while (result == GNOME_VFS_OK) {
1.36 memset (buff, '\0', sizeof (buff));
1.37 result = gnome_vfs_read (handle, buff, sizeof (buff), &read);
1.38 + g_debug ("read %"G_GINT64_FORMAT, read);
1.39 }
1.40
1.41 assert_message (result == GNOME_VFS_ERROR_EOF,