From c2982f81e0d15fb3109112945c73b93a53e21348 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Fri, 15 Dec 2023 16:10:49 +0100 Subject: tests: Fix objref test case Probably a c'n'p bug, the test would allocate a lookup expression instead of the objref one to be tested. Fixes: b4edb4fc558ac ("expr: add stateful object reference expression") Signed-off-by: Phil Sutter --- tests/nft-expr_objref-test.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/nft-expr_objref-test.c') diff --git a/tests/nft-expr_objref-test.c b/tests/nft-expr_objref-test.c index 08e27ce..9e698df 100644 --- a/tests/nft-expr_objref-test.c +++ b/tests/nft-expr_objref-test.c @@ -52,7 +52,7 @@ int main(int argc, char *argv[]) b = nftnl_rule_alloc(); if (a == NULL || b == NULL) print_err("OOM"); - ex = nftnl_expr_alloc("lookup"); + ex = nftnl_expr_alloc("objref"); if (ex == NULL) print_err("OOM"); -- cgit v1.2.3