summaryrefslogtreecommitdiff
path: root/src/core/condition.c
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-05 00:25:26 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2013-07-05 01:36:16 -0400
commita8b409dbc9e1e853a0f92d92603d9bb74592b1ff (patch)
tree7919c18b9fbc4b3c2293bbe8d3b03a9963f8f3fe /src/core/condition.c
parentec26be514ff3c5367b21f9881369080bda54fd2d (diff)
tests: add tests for string lookup tables
The tests check if the tables have entries for all values in the enum, and that the entries are unique.
Diffstat (limited to 'src/core/condition.c')
-rw-r--r--src/core/condition.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/condition.c b/src/core/condition.c
index b2617ef5bf..427aa080ad 100644
--- a/src/core/condition.c
+++ b/src/core/condition.c
@@ -391,9 +391,11 @@ static const char* const condition_type_table[_CONDITION_TYPE_MAX] = {
[CONDITION_PATH_IS_READ_WRITE] = "ConditionPathIsReadWrite",
[CONDITION_DIRECTORY_NOT_EMPTY] = "ConditionDirectoryNotEmpty",
[CONDITION_FILE_NOT_EMPTY] = "ConditionFileNotEmpty",
+ [CONDITION_FILE_IS_EXECUTABLE] = "ConditionFileIsExecutable",
[CONDITION_KERNEL_COMMAND_LINE] = "ConditionKernelCommandLine",
[CONDITION_VIRTUALIZATION] = "ConditionVirtualization",
[CONDITION_SECURITY] = "ConditionSecurity",
+ [CONDITION_CAPABILITY] = "ConditionCapability",
[CONDITION_HOST] = "ConditionHost",
[CONDITION_AC_POWER] = "ConditionACPower",
[CONDITION_NULL] = "ConditionNull"