diff options
author | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-07-13 17:36:03 -0400 |
---|---|---|
committer | Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> | 2013-07-13 21:59:17 -0400 |
commit | bf502e636be8f76e05b0334b4e78ea7a398ba241 (patch) | |
tree | 61e012ab928cf7b16a21fe7c63207c7bc765bba3 /src/test | |
parent | 6aea6d10f460853111ca8744201ec8dade97de3c (diff) |
test: add trivial test for syscall table and extend table tests to error paths
Diffstat (limited to 'src/test')
-rw-r--r-- | src/test/test-tables.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/test/test-tables.c b/src/test/test-tables.c index dff6431b6d..9a3d3e8e74 100644 --- a/src/test/test-tables.c +++ b/src/test/test-tables.c @@ -43,6 +43,7 @@ #include "unit-name.h" #include "unit.h" #include "util.h" +#include "syscall-list.h" #include "test-tables.h" @@ -98,5 +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()); + return EXIT_SUCCESS; } |