chiark / gitweb /
test-tables: allow sparse tables and check mapping for -1
[elogind.git] / src / test / test-tables.c
index 9a3d3e8e741dbee8c5cdf78e94a79c0388bc572d..3b7800cf37ba99f2fc4c8f37e237ff3886dcb2d2 100644 (file)
@@ -99,7 +99,7 @@ int main(int argc, char **argv) {
         test_table(unit_load_state, UNIT_LOAD_STATE);
         test_table(unit_type, UNIT_TYPE);
 
-        _test_table("syscall", syscall_to_name, syscall_from_name, syscall_max());
+        _test_table("syscall", syscall_to_name, syscall_from_name, syscall_max(), true);
 
         return EXIT_SUCCESS;
 }