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);
}