tests: gpiomon: tweak the timing for single event type tests
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 3 Jun 2019 16:17:57 +0000 (18:17 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Wed, 5 Jun 2019 10:06:47 +0000 (12:06 +0200)
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 <bgolaszewski@baylibre.com>
tests/tests-gpiomon.c

index 379eebf1eb965ac3f0f595bd75fd78ef8985655c..b17e411457ac45021b9fe9db5befb7e6f3c64065 100644 (file)
@@ -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();