From ec32cb5e8006e265cdeccce475c5c7424d41d910 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Fri, 12 Apr 2019 16:45:53 +0200 Subject: [PATCH] tests: gpiomon: increase the time waiting for events We no longer have influence over the type of generated events. We always start with a rising edge-event and then get alternating edges. We need to wait slightly longer to collect the events we're expecting in one of the test cases. Signed-off-by: Bartosz Golaszewski --- tests/tests-gpiomon.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/tests-gpiomon.c b/tests/tests-gpiomon.c index a251be6..379eebf 100644 --- a/tests/tests-gpiomon.c +++ b/tests/tests-gpiomon.c @@ -3,6 +3,7 @@ * This file is part of libgpiod. * * Copyright (C) 2017-2018 Bartosz Golaszewski + * Copyright (C) 2019 Bartosz Golaszewski */ /* Test cases for the gpiomon program. */ @@ -89,7 +90,7 @@ static void gpiomon_falling_edge_events_sigint(void) test_tool_run("gpiomon", "--falling-edge", test_chip_name(0), "4", (char *)NULL); test_set_event(0, 4, 100); - usleep(200000); + usleep(300000); test_tool_signal(SIGINT); test_tool_wait(); -- 2.30.2