mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-12 07:26:15 +01:00
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!2990
This commit is contained in:
commit
86430a27d2
@ -307,7 +307,7 @@ test_g_file_info_access_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 again with nanosecond precision. */
|
||||
@ -442,7 +442,7 @@ test_g_file_info_creation_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 again with nanosecond precision. */
|
||||
|
Loading…
Reference in New Issue
Block a user