diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2025-03-16 15:14:55 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-16 15:14:55 +0100 |
| commit | c288e5fbaf73bafb9aa15ade13969fc321e321db (patch) | |
| tree | 412707fb47b80ad46b018dc2519ba86cbb7a5e90 /tests/lib/northbound/test_oper_exists.c | |
| parent | f2245941d822b1d7d11cde51073ef0ac43739df3 (diff) | |
| parent | bc3f7d9c07524112ccd9a5cb950511d4aab4c3f2 (diff) | |
Merge pull request #18399 from LabNConsulting/chopps/fix-unit-tests
2 unit-test fixes
Diffstat (limited to 'tests/lib/northbound/test_oper_exists.c')
| -rw-r--r-- | tests/lib/northbound/test_oper_exists.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/lib/northbound/test_oper_exists.c b/tests/lib/northbound/test_oper_exists.c index 17afcc7fd4..52ecae2fef 100644 --- a/tests/lib/northbound/test_oper_exists.c +++ b/tests/lib/northbound/test_oper_exists.c @@ -157,13 +157,15 @@ const char *data_json = "\n" "}\n"; -static const struct lyd_node *test_oper_get_tree_locked(const char *xpath) +static const struct lyd_node *test_oper_get_tree_locked(const char *xpath __attribute__((unused)), + void **lock __attribute__((unused))) { ++data_tree_lock; return data_tree; } -static void test_oper_unlock_tree(const struct lyd_node *tree __attribute__((unused))) +static void test_oper_unlock_tree(const struct lyd_node *tree __attribute__((unused)), + void *lock __attribute__((unused))) { data_tree_lock--; } |
