tests: fix tree walking test Return -1 to stop the iteration instead of not-0
diff --git a/tests-clar/object/tree/walk.c b/tests-clar/object/tree/walk.c
index a0ea64c..58b0bca 100644
--- a/tests-clar/object/tree/walk.c
+++ b/tests-clar/object/tree/walk.c
@@ -59,7 +59,7 @@ static int treewalk_stop_cb(
(*count) += 1;
- return (*count == 2);
+ return (*count == 2) ? -1 : 0;
}
static int treewalk_stop_immediately_cb(