mainpage.dox -> lwn.net/Articles/558106 -> broken example/chef_wrap links
Perhaps the best solution would be re-adding chef_wrap
to the examples folder?
Another good solution would be updating the LWN article to just include all of the relevant chef_wrap code and removing the links to the deleted files. If you would like to do the latter, I'm happy to update the LWN article and submit it back here in .dox format.
mainpage.dox: https://gitlab.com/cmocka/cmocka/-/blob/master/doc/mainpage.dox
CMocka provides an API to easily mock code. Learn more ...
lwn article: https://lwn.net/Articles/558106/ SSSD link broken - https://fedorahosted.org/sssd/ csync link broken elasto - link out of date Maybe link to the Elasto Code at: https://github.com/elastocloud/elasto/tree/master/test
This chef/waiter example is actually a part of the CMocka source code cmocka link broken - https://git.cryptomilk.org/projects/cmocka.git/tree/example/chef_wrap
The full example, along with other test cases that use the chef/waiter analogy can be found in the CMocka repository. http://git.cryptomilk.org/projects/cmocka.git/
This one is very confusing, as the link works, but the chef_wrap example no longer exists.
The complete unit test can be found in the SSSD project repository. https://git.fedorahosted.org/cgit/sssd.git/tree/src/tests/cmocka/test_nss_srv.c https://git.fedorahosted.org/cgit/sssd.git/
Should link to: https://github.com/SSSD/sssd/tree/master/src/tests/cmocka
Note that the SSSD project linked to prominently is using both check and cmocka for unit testing. Perhaps it's worth-while to get a quote from the SSSD team about the areas where the prefer cmocka more and why sometimes they would use check?