diff -r b937c837e929 -r f5f7abc760aa libgnomevfs2-mythtv/tests/main.c --- a/libgnomevfs2-mythtv/tests/main.c Fri May 11 14:41:11 2007 +0100 +++ b/libgnomevfs2-mythtv/tests/main.c Wed May 30 23:14:38 2007 +0100 @@ -1,6 +1,6 @@ - -#include -#include +#include +#include +#include #include static void @@ -12,14 +12,12 @@ } } - - int main (int argc, char** argv) { GnomeVFSResult result; GnomeVFSFileSize read; gchar buff[512]; - GnomeVFSHandle *handle; + GnomeVFSHandle *handle = NULL; g_assert (argc == 2); @@ -32,9 +30,12 @@ assert_message (result == GNOME_VFS_OK, gnome_vfs_result_to_string (result)); + g_debug ("handle %p", handle); + while (result == GNOME_VFS_OK) { memset (buff, '\0', sizeof (buff)); result = gnome_vfs_read (handle, buff, sizeof (buff), &read); + g_debug ("read %"G_GINT64_FORMAT, read); } assert_message (result == GNOME_VFS_ERROR_EOF,