mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 20:25:12 +01:00
tests: Add a test to avoid a set-but-unused variable
Spotted by `scan-build`. Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
This commit is contained in:
parent
eafc6b257c
commit
6e446931a8
@ -126,6 +126,8 @@ test_far_future_ready_time (void)
|
||||
n_fds = 0;
|
||||
n_fds = g_main_context_query (context, priority, &timeout_, NULL, n_fds);
|
||||
|
||||
g_assert_cmpint (n_fds, >=, 0);
|
||||
|
||||
/* The true timeout in milliseconds doesn't fit into a gint. We definitely
|
||||
* don't want poll() to block forever:
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user