Skip to content

Commit ffc71d3

Browse files
committed
TEST: replace deprecated cmocka macro in test_dyndns.c
Use will_return_ptr_always instead of will_return_always in the will_return_nl_cache_foreach_always wrapper macro since the value passed is a pointer, not an integer. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 58910fb commit ffc71d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tests/cmocka/test_dyndns.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,7 @@ void __wrap_nl_cache_foreach(struct nl_cache *cache,
243243
will_return(__wrap_nl_cache_foreach, data)
244244

245245
#define will_return_nl_cache_foreach_always(data) \
246-
will_return_always(__wrap_nl_cache_foreach, data)
246+
will_return_ptr_always(__wrap_nl_cache_foreach, data)
247247

248248
#else /* HAVE_LIBNL */
249249

0 commit comments

Comments
 (0)