From f5756175e6296939c3d580c2120306ba28bab91b Mon Sep 17 00:00:00 2001 From: Neale Ranns Date: Wed, 9 Feb 2022 13:30:37 +0000 Subject: tests: Fix the FIB UT Type: test The FIB UT fails in debug mode because there is no string associated woth its fib_node_type_t. Change the tests to register their own type, which will give it a name. Signed-off-by: Neale Ranns Change-Id: I36e546718faa7241c088494cbae10939aca51d5a --- src/vnet/fib/fib_node.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/vnet') diff --git a/src/vnet/fib/fib_node.h b/src/vnet/fib/fib_node.h index b6089ec7b35..6639c39bcd2 100644 --- a/src/vnet/fib/fib_node.h +++ b/src/vnet/fib/fib_node.h @@ -53,8 +53,7 @@ typedef enum fib_node_type_t_ { /** * Marker. New types before this one. leave the test last. */ - FIB_NODE_TYPE_TEST, - FIB_NODE_TYPE_LAST = FIB_NODE_TYPE_TEST, + FIB_NODE_TYPE_LAST = FIB_NODE_TYPE_ENTRY_TRACK, } __attribute__ ((packed)) fib_node_type_t; #define FIB_NODE_TYPE_MAX (FIB_NODE_TYPE_LAST + 1) -- cgit 1.2.3-korg