summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPhil Sutter <phil@nwl.cc>2023-12-15 16:10:49 +0100
committerPhil Sutter <phil@nwl.cc>2024-03-06 15:40:36 +0100
commitc2982f81e0d15fb3109112945c73b93a53e21348 (patch)
tree20de208a6da43012412aa568010dc6a09e53539a /tests
parent684585351a61e1f19140f93ae7c74acaf11a309f (diff)
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 <phil@nwl.cc>
Diffstat (limited to 'tests')
-rw-r--r--tests/nft-expr_objref-test.c2
1 files changed, 1 insertions, 1 deletions
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");