aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBartosz Golaszewski <bgolaszewski@baylibre.com>2019-04-12 16:45:53 +0200
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2019-04-23 11:50:13 +0200
commitec32cb5e8006e265cdeccce475c5c7424d41d910 (patch)
treee50f527f60d8bb74482962637b9c1281f8287f7a
parenta3236fdd92546fdc27101beff11c350c9a5d1bbe (diff)
downloadlibgpiod-ec32cb5e8006e265cdeccce475c5c7424d41d910.tar.gz
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 <bgolaszewski@baylibre.com>
-rw-r--r--tests/tests-gpiomon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/tests-gpiomon.c b/tests/tests-gpiomon.c
index a251be66..379eebf1 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 <bartekgola@gmail.com>
+ * Copyright (C) 2019 Bartosz Golaszewski <bgolaszewski@baylibre.com>
*/
/* 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();