From 1eb79dfadedb8b77cdc55a6a11f859c1e53521d4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Thu, 10 Sep 2020 15:13:03 -0700 Subject: [PATCH] util/xmlconfig: Add a unit test of the code. I want to build a non-XML-based alternative for Android, and to do that I want to know that my equivalent code still works. Reviewed-by: Kristian H. Kristensen Part-of: --- src/util/driconf.h | 8 +- src/util/meson.build | 11 +++ src/util/tests/xmlconfig.cpp | 158 +++++++++++++++++++++++++++++++++++ src/util/xmlconfig.h | 8 ++ 4 files changed, 181 insertions(+), 4 deletions(-) create mode 100644 src/util/tests/xmlconfig.cpp diff --git a/src/util/driconf.h b/src/util/driconf.h index 12bfadb1b36..6c13578eb0b 100644 --- a/src/util/driconf.h +++ b/src/util/driconf.h @@ -82,7 +82,7 @@ /** \brief Begin an option definition with restrictions on valid values */ #define DRI_CONF_OPT_BEGIN_V(name,type,def,valid) \ -"