[LTP] Test library API changes

Cyril Hrubis chrubis@suse.cz
Tue Feb 9 17:57:04 CET 2016


Hi!
> This time I've added functionality to handle child processes:
> 
> https://github.com/metan-ucw/ltp/blob/master/include/tst_test.h#L48
> 
> This function forks a child, runs the function and propagates the
> results to the parent process via pipe.
> 
> The function is implemented at:
> 
> https://github.com/metan-ucw/ltp/blob/master/lib/tst_test.c#L129
> 
> And used in newly converted test at:
> 
> https://github.com/metan-ucw/ltp/blob/master/testcases/kernel/syscalls/creat/creat04.c
> 
> Whith this the core test library API is more or less sketched.

And I was writing faster than thinking. We will need another one where
starting and reaping child is split between two functions. I will work
on that tomorrow.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the Ltp mailing list