From: Bartosz Golaszewski Date: Mon, 3 Jun 2019 16:17:57 +0000 (+0200) Subject: tests: gpiomon: tweak the timing for single event type tests X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=e3d699143e38c7ae4617fea8a7c1c1d647e7ead4;p=qemu-gpiodev%2Flibgpiod.git tests: gpiomon: tweak the timing for single event type tests Since switching to using libgpiomockup there are some timing problems with two gpiomon test cases. I'm not sure what the reason is and we'll be switching to glib unit tests soon, so let's not waste time on that and just increase the sleep time. Signed-off-by: Bartosz Golaszewski --- diff --git a/tests/tests-gpiomon.c b/tests/tests-gpiomon.c index 379eebf..b17e411 100644 --- a/tests/tests-gpiomon.c +++ b/tests/tests-gpiomon.c @@ -90,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(300000); + usleep(400000); test_tool_signal(SIGINT); test_tool_wait(); @@ -110,7 +110,7 @@ static void gpiomon_both_events_sigterm(void) test_tool_run("gpiomon", "--falling-edge", "--rising-edge", test_chip_name(0), "4", (char *)NULL); test_set_event(0, 4, 100); - usleep(300000); + usleep(400000); test_tool_signal(SIGTERM); test_tool_wait();