mirror of
https://github.com/flatpak/flatpak.git
synced 2026-04-14 03:49:28 -04:00
testcommon: Assert that parse_datetime succeeds
scan-build detected that ret was written but never read. Signed-off-by: Simon McVittie <smcv@collabora.com>
This commit is contained in:
committed by
Alexander Larsson
parent
3a85ceecfc
commit
bd5c2762cf
@@ -1349,6 +1349,7 @@ test_parse_datetime (void)
|
||||
g_assert_true (ts.tv_sec == now.tv_sec); // close enough
|
||||
|
||||
ret = parse_datetime (&ts, "2018-10-29 00:19:07 +0000", NULL);
|
||||
g_assert_true (ret);
|
||||
dt = g_date_time_new_utc (2018, 10, 29, 0, 19, 7);
|
||||
g_date_time_to_timeval (dt, &tv);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user