Simple manual check that we remeber to properly deprecate if we ever remove a parameter again.
Signed-off-by: Peter Hutterer <peter.hutte...@who-t.net> --- tools/xsetwacom.c | 12 ++++++++++++ 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/tools/xsetwacom.c b/tools/xsetwacom.c index b0ec4ab..abcc332 100644 --- a/tools/xsetwacom.c +++ b/tools/xsetwacom.c @@ -2183,10 +2183,22 @@ static void test_convert_specialkey(void) } } +static void test_parameter_number(void) +{ + /* If either of those two fails, a parameter was added or removed. + * This test simply exists so that we remember to properly + * deprecated them. + * Numbers include trailing NULL entry. + */ + g_assert(ArrayLength(parameters) == 34); + g_assert(ArrayLength(deprecated_parameters) == 15); +} + int main(int argc, char** argv) { g_test_init(&argc, &argv, NULL); + g_test_add_func("/xsetwacom/parameter_number", test_parameter_number); g_test_add_func("/xsetwacom/is_modifier", test_is_modifier); g_test_add_func("/xsetwacom/convert_specialkey", test_convert_specialkey); return g_test_run(); -- 1.7.3.5 ------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb _______________________________________________ Linuxwacom-devel mailing list Linuxwacom-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linuxwacom-devel