[LTP] [PATCH v2 2/3] tst_test: Print environment variables on -h
Cyril Hrubis
chrubis@suse.cz
Wed Dec 15 10:49:24 CET 2021
Hi!
> [ Cc Joerg, Li and Cyril, who were involved in shell timeout ]
> We spent quite a lot of time before we end-up with ceiling, I'd have to search
> for the reasons. We also didn't think that it's a big problem to not being
> precise on shell. But feel free to improve things. Just, generally we prefer to
> wrote small C code instead adding new dependencies (bc etc) or trying to make
> shell portable. Actually writing C parser would be few lines of code.
We even have tst_multiply_timeout() function in the C API that does all
the work. So this should be as simple as adding another C helper that
would take one number on commandline as a parameter and print the
result after calling the function.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list