From c88b1d1ca0c3be66c73a15d693c9da947bd6c0cd Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 11 Apr 2023 18:12:59 +0100 Subject: [PATCH] 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 --- test/testevdev.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/test/testevdev.c b/test/testevdev.c index 76fe136fc..112836fe7 100644 --- a/test/testevdev.c +++ b/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; + } } }