Переглянути джерело

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 <[email protected]>
Simon McVittie 2 роки тому
батько
коміт
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 ff[(FF_MAX + 1) / 8];
     uint8_t props[INPUT_PROP_MAX / 8];
     uint8_t props[INPUT_PROP_MAX / 8];
     int expected;
     int expected;
+    const char *todo;
 } GuessTest;
 } 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;
+            }
         }
         }
     }
     }