diff options
author | Lyude <lyude@redhat.com> | 2017-02-22 22:16:24 -0500 |
---|---|---|
committer | Lyude <lyude@redhat.com> | 2017-02-28 14:29:32 -0500 |
commit | d85411680c9e7656229be2ec33bd3bccbe2f1577 (patch) | |
tree | 36a43420e92d8178f8153c68c3263f0108a92882 /tests/chamelium.c | |
parent | a8ea5ddc7b6896eb192163ceb4a481d680fece2f (diff) |
tests/chamelium: Don't sleep so much in basic hpd tests
Now that we can just disable HPD storm detection, there's no need to
sleep between each hotplug cycle.
Signed-off-by: Lyude <lyude@redhat.com>
Diffstat (limited to 'tests/chamelium.c')
-rw-r--r-- | tests/chamelium.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/chamelium.c b/tests/chamelium.c index 849e1ac5..810c955e 100644 --- a/tests/chamelium.c +++ b/tests/chamelium.c @@ -154,6 +154,7 @@ test_basic_hotplug(data_t *data, struct chamelium_port *port) int i; reset_state(data, port); + igt_hpd_storm_set_threshold(0); for (i = 0; i < 15; i++) { igt_flush_hotplugs(mon); @@ -171,12 +172,10 @@ test_basic_hotplug(data_t *data, struct chamelium_port *port) igt_assert(igt_hotplug_detected(mon, HOTPLUG_TIMEOUT)); igt_assert_eq(reprobe_connector(data, port), DRM_MODE_DISCONNECTED); - - /* Sleep so we don't accidentally cause an hpd storm */ - usleep(500 * 1000); } igt_cleanup_hotplug(mon); + igt_hpd_storm_reset(); } static void |