From e3d699143e38c7ae4617fea8a7c1c1d647e7ead4 Mon Sep 17 00:00:00 2001 From: Bartosz Golaszewski Date: Mon, 3 Jun 2019 18:17:57 +0200 Subject: [PATCH] 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 --- tests/tests-gpiomon.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.30.2