mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 18:52:09 +01:00
tests: skip based on g_file_info_has_attribute
Per review request. Matches the style for the newly introduced skip check in test_g_file_info_access_time.
This commit is contained in:
parent
7162b3c496
commit
7c74fe4c1d
@ -417,9 +417,7 @@ test_g_file_info_creation_time (void)
|
||||
NULL, &error);
|
||||
g_assert_no_error (error);
|
||||
|
||||
/* Check the creation time is retrievable. */
|
||||
dt = g_file_info_get_creation_date_time (info);
|
||||
if (!dt)
|
||||
if (!g_file_info_has_attribute (info, G_FILE_ATTRIBUTE_TIME_CREATED))
|
||||
{
|
||||
g_test_skip ("Skipping testing creation time as it’s not supported by the kernel");
|
||||
g_clear_object (&io_stream);
|
||||
@ -429,6 +427,9 @@ test_g_file_info_creation_time (void)
|
||||
return;
|
||||
}
|
||||
|
||||
/* Check the creation time is retrievable. */
|
||||
dt = g_file_info_get_creation_date_time (info);
|
||||
|
||||
/* Try again with microsecond precision. */
|
||||
g_clear_object (&info);
|
||||
info = g_file_query_info (file,
|
||||
|
Loading…
x
Reference in New Issue
Block a user