aboutsummaryrefslogtreecommitdiff
path: root/src/tests
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2020-05-19 13:08:40 +0200
committerAleksander Morgado <aleksander@aleksander.es>2020-05-19 13:44:23 +0200
commitc7dee320c004bf9508e54555d0ad9f727b449705 (patch)
tree1ef4cbb8ef6021c22f9e995b799b46c80a96ad1a /src/tests
parent71d8bb2ec854e43c56d77c87f80c40807e8f8457 (diff)
test-qcdm-serial-port: fix warnings with -Wsign-compare
test-qcdm-serial-port.c: In function 'wait_for_child': test-qcdm-serial-port.c:57:52: error: comparison between signed and unsigned integer expressions [-Werror=sign-compare] if (d->child && (now.tv_sec - start.tv_sec > timeout)) { ^
Diffstat (limited to 'src/tests')
-rw-r--r--src/tests/test-qcdm-serial-port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tests/test-qcdm-serial-port.c b/src/tests/test-qcdm-serial-port.c
index 0b14282c..2a9e1c47 100644
--- a/src/tests/test-qcdm-serial-port.c
+++ b/src/tests/test-qcdm-serial-port.c
@@ -54,7 +54,7 @@ wait_for_child (TestData *d, guint32 timeout)
status = 0;
ret = waitpid (d->child, &status, WNOHANG);
g_get_current_time (&now);
- if (d->child && (now.tv_sec - start.tv_sec > timeout)) {
+ if (d->child && (now.tv_sec - start.tv_sec > (glong)timeout)) {
/* Kill it */
if (g_test_verbose ())
g_message ("Killing running child process %d", d->child);