test: fix build without timer library

The action for timer_secondary_spawn_wait should be enabled only when
CONFIG_RTE_LIBRTE_TIMER is enabled.

Fixes: 50247fe03f ("test/timer: exercise new APIs in secondary process")
Cc: stable@dpdk.org

Signed-off-by: Timothy Redaelli <tredaelli@redhat.com>
This commit is contained in:
Timothy Redaelli 2019-07-04 17:36:08 +02:00 committed by Thomas Monjalon
parent e8428710f8
commit d3065379ff

View File

@ -67,7 +67,9 @@ do_recursive_call(void)
{ "test_memory_flags", no_action }, { "test_memory_flags", no_action },
{ "test_file_prefix", no_action }, { "test_file_prefix", no_action },
{ "test_no_huge_flag", no_action }, { "test_no_huge_flag", no_action },
#ifdef RTE_LIBRTE_TIMER
{ "timer_secondary_spawn_wait", test_timer_secondary }, { "timer_secondary_spawn_wait", test_timer_secondary },
#endif
}; };
if (recursive_call == NULL) if (recursive_call == NULL)