hi guys, i'm working with processes and i find an obstacle that i can't handle, and i can't even find anything on the web regarding it.the application is a basic producer\consumer application with the use of a buffer. the logic part is gone, and i'm testing it with Cunit.one of the test should be something like:fork() to a child process, that tries to read a message in the buffer. obviously there's no way a child process can return the message (except storing it in shared memory, but i'd like to leave it as last choice), so i should made, from inside the child process, the assert regarding the message:
/*The consumer has taken the right message from the buffer*/
/*The buffer still contains a copy of the string*/
if i try to strcmp or print the strings everything works, but it's not the way to do it; i have to use Cunit, but he seems to simply ignore my asserts, when called from child process. if i have 100 asserts in the parent process and 10 in the child process, the total amount of asserts verificated is 100.how can i solve this issue?