[LTP] [PATCH v2] syscalls/getdents01: Add close() and open() at the end of run()

Cyril Hrubis chrubis@suse.cz
Mon Apr 26 16:16:43 CEST 2021


Hi!
> When the test run with the option of '-i', we need call close
> and open at the end of run(), otherwist the test will fail,as follows:
> 
> $ getdents01 -i 2

Pushed thanks.

Also I've found another bug that breaks the test with large enough -i
parameter. We do increment the dirp in the do {} while loop at the end,
so after a few interations we get out of the buffer and the call fails
with EFAULT.

I've fixed that in a subsequent patch.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list