summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-02-09 13:30:37 +0000
committerDamjan Marion <dmarion@me.com>2022-02-10 17:27:04 +0000
commitf5756175e6296939c3d580c2120306ba28bab91b (patch)
tree726b313d3818d463dd2b3b35c18e960a9098e44a /src/vnet
parent791144cbc5587d64253f3d89b5d2f0ae3f6dfb0d (diff)
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 <neale@graphiant.com> Change-Id: I36e546718faa7241c088494cbae10939aca51d5a
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/fib/fib_node.h3
1 files changed, 1 insertions, 2 deletions
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)