test: don't run the tool switch test on tablets that require forced prox out
authorPeter Hutterer <peter.hutterer@who-t.net>
Thu, 10 Sep 2020 22:39:52 +0000 (08:39 +1000)
committerPeter Hutterer <peter.hutterer@who-t.net>
Tue, 22 Sep 2020 07:35:41 +0000 (17:35 +1000)
This test only worked because we're emulating events that the device never
sends that way. Just skip the test, devices that require a forced prox out
probably don't handle (or even have) erasers ayway.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
test/test-tablet.c

index dcf18629e6277ff688db4cab1cd803b9db4cde32..bfc25737dfbe1cd0afd0ed5c6f99de19f2540a68 100644 (file)
@@ -5932,7 +5932,7 @@ TEST_COLLECTION(tablet)
        litest_add("tablet:tool", tool_user_data, LITEST_TABLET | LITEST_TOOL_SERIAL, LITEST_ANY);
        litest_add("tablet:tool", tool_capability, LITEST_TABLET, LITEST_ANY);
        litest_add_no_device("tablet:tool", tool_capabilities);
-       litest_add("tablet:tool", tool_type, LITEST_TABLET, LITEST_ANY);
+       litest_add("tablet:tool", tool_type, LITEST_TABLET, LITEST_FORCED_PROXOUT);
        litest_add("tablet:tool", tool_in_prox_before_start, LITEST_TABLET, LITEST_TOTEM);
        litest_add("tablet:tool", tool_direct_switch_skip_tool_update, LITEST_TABLET, LITEST_ANY);
        litest_add("tablet:tool", tool_direct_switch_with_forced_proxout, LITEST_TABLET, LITEST_ANY);