[LTP] [PATCH v3] tst_test: Add min_runtime to control lower bound of scaled runtime

Cyril Hrubis chrubis@suse.cz
Thu Jul 17 13:38:00 CEST 2025


Hi!
> +	if (tst_test->min_runtime)
> +		min_runtime = MAX(1, tst_test->min_runtime);

Maybe just:
	if (tst_test->min_runtime > 0)
		min_runtime = tst_test->min_runtime;

>  	parse_mul(&runtime_mul, "LTP_RUNTIME_MUL", 0.0099, 100);
>  
> -	return runtime * runtime_mul;
> +	return MAX(runtime * runtime_mul, min_runtime);
>  }

Other than that the approach looks solid to me:

Reviewed-by: Cyril Hrubis <chrubis@suse.cz>


Also sorry for the delay, I was trying to deal with the oldest patches
that were being ignored in patchwork so I've ignored the newer patches
for a while.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list