Re: [PATCH 3/3] testutils: Document and enforce @func callback retvals for virTestMain()

2021-05-17 Thread Peter Krempa
On Mon, May 17, 2021 at 08:49:10 +0200, Michal Privoznik wrote: > Sometimes a test has a wrapper over main() (e.g. because it's > preloading some mock libraries). In such case, the main() is > renamed to something else (usually mymain()), and main() is > generated by calling one of VIR_TEST_MAIN()

[PATCH 3/3] testutils: Document and enforce @func callback retvals for virTestMain()

2021-05-17 Thread Michal Privoznik
Sometimes a test has a wrapper over main() (e.g. because it's preloading some mock libraries). In such case, the main() is renamed to something else (usually mymain()), and main() is generated by calling one of VIR_TEST_MAIN() or VIR_TEST_MAIN_PRELOAD() macros. This has a neat side effect - if