[LTP] [PATCH] setxattr: prefer not to run tests in tmpfs

Cyril Hrubis chrubis@suse.cz
Mon Mar 20 16:30:51 CET 2017


Hi!
> > We can either exit the test with TCONF if /tmp is on tmpfs or format and
> > mount a device and run these testcases on a file created there in that
> > case.
> 
> Thanks for sharing your thoughts. It is clear now.
> 
> However, what about tests which fails by default on tmpfs like "fcntl" tests?
> Should we default to the "/tmp" directory rather than mounting another device
> and run the tests again ?

Have a look at ftruncate04.c testcase, that falls back to mounting a
device over the directory the test uses if needed.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list