mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-27 07:56:14 +01:00
mappedfile test: permit ENODEV on /dev/null
mmap() on /dev/null returns ENODEV on old Linux versions and also on Hurd, so accept that in the testcase. https://bugzilla.gnome.org/show_bug.cgi?id=722360
This commit is contained in:
parent
4825e819b2
commit
4af9b8e9cb
@ -54,6 +54,7 @@ test_device (void)
|
||||
|
||||
file = g_mapped_file_new ("/dev/null", FALSE, &error);
|
||||
g_assert (g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_INVAL) ||
|
||||
g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NODEV) ||
|
||||
g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_NOMEM));
|
||||
g_assert (file == NULL);
|
||||
g_error_free (error);
|
||||
|
Loading…
Reference in New Issue
Block a user