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>main
parent
22e6319fed
commit
c88b1d1ca0
|
@ -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,9 +1085,14 @@ run_test(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (t->todo) {
|
||||||
|
printf("\tKnown issue, ignoring: %s\n", t->todo);
|
||||||
|
} else {
|
||||||
|
printf("\tFailed\n");
|
||||||
success = 0;
|
success = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return success;
|
return success;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue