[LTP] [PATCH] lib/tst_test.c: add *cleanup() before exit

zhaogongyi zhaogongyi@huawei.com
Tue Nov 9 02:38:32 CET 2021


Hi Cyril,

If we run the LTP testcases Concurrently, this might trigger the oom killer to kill the library process before the main process exit, and it might fill up the tmpfs through a long time running.


Thanks so much!
Gongyi

> 
> Hi!
> > If the main process exit without *cleanup() and when the lib process
> > has exit, the test environment would not be reset when the testcase
> > needs resource of device or tmpfs.
> 
> This looks like working around the real problem. The test library process is
> supposed to outlive the child in all circumstances.
> 
> What exactly happens in your case that this code gets triggered?
> 
> --
> Cyril Hrubis
> chrubis@suse.cz


More information about the ltp mailing list