From daabe5491ee0c78b735336c9e69b7f6ea57464e0 Mon Sep 17 00:00:00 2001 From: Zbigniew Jędrzejewski-Szmek Date: Tue, 16 Jul 2013 12:01:01 -0400 Subject: test-tables: allow sparse tables and check mapping for -1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Jan: test-tables fails on my system. The one it's failing on is: syscall: 222 → (null) → -1 ... and indeed, our own tables should not have holes, but syscall tables certainly might. --- src/test/test-tables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/test') diff --git a/src/test/test-tables.c b/src/test/test-tables.c index 9a3d3e8e74..3b7800cf37 100644 --- a/src/test/test-tables.c +++ b/src/test/test-tables.c @@ -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; } -- cgit v1.2.3-54-g00ecf