Merge branch 'time' into 'main'

gio/tests/g-file-info: don't assume million-in-one events don't happen

See merge request GNOME/glib!2177
This commit is contained in:
Philip Withnall 2021-07-08 10:36:26 +00:00
commit 05d5b404d4

View File

@ -178,7 +178,7 @@ test_g_file_info_modification_time (void)
g_assert_nonnull (dt_usecs);
ts = g_date_time_difference (dt_usecs, dt);
g_assert_cmpint (ts, >, 0);
g_assert_cmpint (ts, >=, 0);
g_assert_cmpint (ts, <, G_USEC_PER_SEC);
/* Try round-tripping the modification time. */