[LTP] [PATCH 1/1] lib: Skip tst_{disable, enable}_oom_protection() for non-root
Petr Vorel
pvorel@suse.cz
Wed Dec 22 11:48:10 CET 2021
> Hi!
> > We use just FILE_PRINTF(), but we check the result and TWARN, which causes the
> > failure in CI.
> Which is why I argued that we should add a version that does not print
> anything and just returns if the operation was successful or not. I
> guess it could be called TRY_FILE_PRINTF() or something.
OK, got that.
> > I've sent v2, which checks CAP_SYS_ADMIN and CAP_SYS_RESOURCE,
> > but feel free just to bring simpler solution.
> I still think that the most acurate test would be just writing to the
> file and checking the result.
OK. Anybody taking this (so that not more people working on it)?
Kind regards,
Petr
More information about the ltp
mailing list