Bug#941547: glib2.0: intermittent test failure: gio/tests/g-file-info.c:190:test_g_file_info_modification_time: assertion failed (ts == 0): (-1 == 0)

Simon McVittie smcv at debian.org
Tue Oct 1 23:34:35 BST 2019


On Tue, 01 Oct 2019 at 23:01:14 +0100, Simon McVittie wrote:
> The test in question asserts that we can:
> 
> * read the modification time of a file, with microsecond precision
> * set a modification time 50 microseconds later
> * read the modification time back
> * get the same modification time we set
> 
> and the failure mode is that the file's new mtime is 1 microsecond older
> than what we asked for.

I think this is because it's using a GDateTime API that involves floating
point. I have a patch (replacing g_date_time_add_seconds() with an
equivalent g_date_time_add() that adds microseconds) which I'll test and
hopefully upload tomorrow.

    smcv



More information about the pkg-gnome-maintainers mailing list