[LTP] [PATCH] testcases/lib: introduce sysctl wrapper

Cyril Hrubis chrubis@suse.cz
Wed Feb 23 13:44:22 CET 2022


Hi!
> > Ah, right. But I guess that adding a simple tool that would behave just
> > as echo but the first parameter would be filename may be cleaner
> > solution than wrapping around the sysctl command.
> +1. If really requested please create C binary testcases/lib/tst_sysctl.c.
> Code which use simple SAFE_FILE_PRINTF() as many C code does would be fairly
> simple, more portable and probably faster than shell script. FYI we tend to
> rewrite shell code into C.

I would even call it tst_write since it's pretty generic tool that does
write to a file.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list