mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-24 14:36:13 +01:00
tests: Fix leaks in new GDateTime file info tests
From b7b10cc7e0
. My fault!
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
164b9894b5
commit
4282f22102
@ -241,6 +241,8 @@ test_g_file_info_modification_time (void)
|
||||
g_assert_cmpuint (new_nsecs, ==, nsecs + 100);
|
||||
g_assert_cmpuint (new_nsecs, >=, new_usecs * 1000);
|
||||
g_assert_cmpuint (new_nsecs, <, (new_usecs + 1) * 1000);
|
||||
|
||||
g_date_time_unref (new_dt_usecs);
|
||||
}
|
||||
|
||||
/* Clean up. */
|
||||
@ -363,6 +365,8 @@ test_g_file_info_access_time (void)
|
||||
g_assert_cmpuint (new_nsecs, ==, nsecs + 100);
|
||||
g_assert_cmpuint (new_nsecs, >=, new_usecs * 1000);
|
||||
g_assert_cmpuint (new_nsecs, <, (new_usecs + 1) * 1000);
|
||||
|
||||
g_date_time_unref (new_dt_usecs);
|
||||
}
|
||||
|
||||
/* Clean up. */
|
||||
@ -496,6 +500,8 @@ test_g_file_info_creation_time (void)
|
||||
g_assert_cmpuint (new_nsecs, ==, nsecs + 100);
|
||||
g_assert_cmpuint (new_nsecs, >=, new_usecs * 1000);
|
||||
g_assert_cmpuint (new_nsecs, <, (new_usecs + 1) * 1000);
|
||||
|
||||
g_date_time_unref (new_dt_usecs);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user