GNOME Bugzilla – Bug 669331
try to get gio tests working a little better on win32
Last modified: 2012-08-06 15:34:07 UTC
a lot of the gio tests fail on win32 for various reasons, often path-related. I'm not totally convinced about the correctness of any of these patches.
Created attachment 206700 [details] [review] glocalfile: fix g_file_get_parse_name() on win32 When getting the parse name for a file: URI on win32, we were not translating "\" to "/", resulting in incorrect output.
Created attachment 206701 [details] [review] gio/tests/g-file.c: fix some path checks on win32 Some of the tests needed to be modified to use G_DIR_SEPARATOR_S rather than hardcoded "/"s.
Created attachment 206702 [details] [review] gio/tests/file: skip the file monitor tests if using GPollFileMonitor test_create_delete() assumes that if it creates a file and then immediately deletes it, that the file monitor will notice this and record it as a create followed by a delete. But that won't work with GPollFileMonitor, which will just think nothing changed. So skip the test in that case.
Created attachment 206703 [details] [review] gicon: make g_icon_new_for_string() recognize win32 paths (but for compatibility, make it still recognize unix paths on win32 too)
Created attachment 206704 [details] [review] gio/tests/g-icon.c: fix some path checks on win32 Some of the tests needed to be modified to use G_DIR_SEPARATOR_S rather than hardcoded "/"s.