test: refactor make-callback-recurse test
Checklist
-
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passes -
commit message follows commit guidelines
Affected core subsystem(s)
test timers addons
Description of change
Move copy/pasted callback into its own function.