From b5e55a27a46f166f466c7996675542de645eff66 Mon Sep 17 00:00:00 2001 From: Florin Coras Date: Thu, 10 Jan 2019 12:42:47 -0800 Subject: session: generate wrong thread errors instead of crashing Change-Id: I7e59ae718d2722c49d42b22a0874e1645a191e89 Signed-off-by: Florin Coras --- src/plugins/unittest/session_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/plugins') diff --git a/src/plugins/unittest/session_test.c b/src/plugins/unittest/session_test.c index c504d8df15d..cc273321d32 100644 --- a/src/plugins/unittest/session_test.c +++ b/src/plugins/unittest/session_test.c @@ -1194,7 +1194,8 @@ session_test_rules (vlib_main_t * vm, unformat_input_t * input) &is_filtered); SESSION_TEST ((tc == 0), "lookup for 1.2.3.4/32 1234 5.6.7.8/16 4321 " "should fail (deny rule)"); - SESSION_TEST ((is_filtered == 1), "lookup should be filtered (deny)"); + SESSION_TEST ((is_filtered == SESSION_LOOKUP_RESULT_FILTERED), + "lookup should be filtered (deny)"); handle = session_lookup_local_endpoint (local_ns_index, &sep); SESSION_TEST ((handle == SESSION_DROP_HANDLE), "lookup for 1.2.3.4/32 1234 " -- cgit 1.2.3-korg