1
0
Эх сурвалжийг харах

testevdev: Add the ability to mark a device entry as unimplemented

There are some devices for which SDL's device classification heuristic
is known not to give the ideal result. Add a way to incorporate these
into our test data, so that when the heuristic is improved we can
detect them as their intended device type, without making the test fail
before that has been implemented.

Signed-off-by: Simon McVittie <smcv@collabora.com>
Simon McVittie 2 жил өмнө
parent
commit
c88b1d1ca0
1 өөрчлөгдсөн 7 нэмэгдсэн , 1 устгасан
  1. 7 1
      test/testevdev.c

+ 7 - 1
test/testevdev.c

@@ -71,6 +71,7 @@ typedef struct
     uint8_t ff[(FF_MAX + 1) / 8];
     uint8_t props[INPUT_PROP_MAX / 8];
     int expected;
+    const char *todo;
 } GuessTest;
 
 /*
@@ -1084,7 +1085,12 @@ run_test(void)
                 }
             }
 
-            success = 0;
+            if (t->todo) {
+                printf("\tKnown issue, ignoring: %s\n", t->todo);
+            } else {
+                printf("\tFailed\n");
+                success = 0;
+            }
         }
     }