Dan Winship
ca5ed93fde
glocalfile: fix error code when opening a directory on win32
...
g_file_read() was returning G_IO_ERROR_IS_DIRECTORY when you tried to
open a directory on unix, but G_IO_ERROR_PERMISSION_DENIED on win32.
Fix that, and add a test to tests/file.c
Pointed out on IRC by Paweł Forysiuk.
https://bugzilla.gnome.org/show_bug.cgi?id=669330
2012-02-09 06:48:12 -05:00
Dan Winship
f43565c822
gio/tests/file: use g_file_new_tmp()
...
Rather than misusing g_file_open_tmp(), misuse g_file_new_tmp()
instead. Progress! (Also, gets rid of a compile warning about close()
on win32.)
2012-02-03 13:01:19 -05:00
David Zeuthen
0729260141
Silence a bunch of -Wunused-but-set-variable warnings
...
Signed-off-by: David Zeuthen <davidz@redhat.com>
2011-04-08 15:44:25 -04:00
Dan Winship
8f5ec0dad3
Fix misc compiler warnings in (mostly) test programs
2010-08-19 18:24:53 -04:00
Matthias Clasen
4160c5c74a
Add tests for async file replace and load
2010-08-13 19:40:48 -04:00
Matthias Clasen
93bd5298c7
Add an async file create/write/read/delete test
2010-08-13 17:23:44 -04:00
Matthias Clasen
5d9d3f0318
Add some async file tests
2010-08-13 12:04:21 -04:00
Matthias Clasen
13ac9f94fd
Add some more GFile tests
2010-07-30 19:51:19 -04:00
Matthias Clasen
dea042b855
Misc test additions
2010-07-05 03:09:36 -04:00