mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-26 22:16:16 +01:00
tests/mappedfile: Also handle ENOMEM
The RHEL6.4 kernel gives me that instead of EINVAL. https://bugzilla.gnome.org/show_bug.cgi?id=699485
This commit is contained in:
parent
c0e0c6a420
commit
f61daa6ed2
@ -50,7 +50,8 @@ test_device (void)
|
||||
GMappedFile *file;
|
||||
|
||||
file = g_mapped_file_new ("/dev/null", FALSE, &error);
|
||||
g_assert_error (error, G_FILE_ERROR, G_FILE_ERROR_INVAL);
|
||||
g_assert (g_error_matches (error, G_FILE_ERROR, G_FILE_ERROR_INVAL) ||
|
||||
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