Merge branch 'win32-fd' into 'main'

gio: various unix/fd-related enablement on win32

See merge request GNOME/glib!2656
This commit is contained in:
Philip Withnall
2022-05-18 14:01:43 +00:00
10 changed files with 224 additions and 109 deletions

View File

@@ -419,7 +419,8 @@ test_search_path_heap_allocation (void)
if (skip_win32 ())
return;
memset (placeholder, '_', sizeof (placeholder));
memset (placeholder, '_', sizeof (placeholder) - 1);
placeholder[sizeof (placeholder) - 1] = '\0';
/* Force search_path_buffer to be heap-allocated */
long_dir = g_test_build_filename (G_TEST_BUILT, "path-test-subdir", placeholder, NULL);
long_path = g_strjoin (G_SEARCHPATH_SEPARATOR_S, subdir, long_dir, NULL);