chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
test-tables: add new entries
[elogind.git]
/
src
/
shared
/
test-tables.h
diff --git
a/src/shared/test-tables.h
b/src/shared/test-tables.h
index 3261302077d4cb1765fa9f477103bd7cd4d80043..3ac8729d749af090c0bdd5da9a91166a4c14ad3c 100644
(file)
--- a/
src/shared/test-tables.h
+++ b/
src/shared/test-tables.h
@@
-49,3
+49,6
@@
static inline void _test_table(const char *name,
#define test_table(lower, upper) \
_test_table(STRINGIFY(lower), lower##_to_string, lower##_from_string, _##upper##_MAX, false)
#define test_table(lower, upper) \
_test_table(STRINGIFY(lower), lower##_to_string, lower##_from_string, _##upper##_MAX, false)
+
+#define test_table_sparse(lower, upper) \
+ _test_table(STRINGIFY(lower), lower##_to_string, lower##_from_string, _##upper##_MAX, true)