From: Bartosz Golaszewski Date: Fri, 12 Apr 2019 14:45:53 +0000 (+0200) Subject: tests: gpiomon: increase the time waiting for events X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=ec32cb5e8006e265cdeccce475c5c7424d41d910;p=qemu-gpiodev%2Flibgpiod.git 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 --- 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();