From: Mathieu Desnoyers Date: Tue, 17 May 2016 16:22:44 +0000 (-0400) Subject: Fix: unchecked return value in low throughput test X-Git-Tag: v2.9.0-rc1~184 X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=commitdiff_plain;h=76e58a6e4c2003d30b3e9ae1aaa699c64c07a2ef;hp=e8f919e0ca5cc3330b1a6d12733863eb023c32f0 Fix: unchecked return value in low throughput test Found by Coverity: CID 1019967 (#1 of 1): Unchecked return value from library (CHECKED_RETURN)2. check_return: Calling poll(NULL, 0UL, 60000) without checking return value. This library function may fail and return an error code. We really don't care whether this poll succeeds or not. Signed-off-by: Mathieu Desnoyers Signed-off-by: Jérémie Galarneau --- diff --git a/tests/regression/ust/low-throughput/main.c b/tests/regression/ust/low-throughput/main.c index 06ab9ef82..b1c38bc94 100644 --- a/tests/regression/ust/low-throughput/main.c +++ b/tests/regression/ust/low-throughput/main.c @@ -34,7 +34,7 @@ static void *th_event_minute(void *data) /* Loop for 20 minutes */ for (i = 1; i < 21; i++) { /* Sleep 60 seconds */ - poll(NULL, 0, 60000); + (void) poll(NULL, 0, 60000); /* 20 minutes tracepoint */ if ((i % 20) == 0) {