[LTP] [PATCH v2 1/2] syscalls/alarm02: Rewrite to new library

Cyril Hrubis chrubis@suse.cz
Thu Aug 2 17:54:33 CEST 2018


Hi!
> +} tcases[] = {
> +	{"-1", -1},
> +	{"UINT_MAX", UINT_MAX},
> +	{"UINT_MAX + 1", UINT_MAX + 1},
> +};

Can we get rid of the -1 and 0 (aka UINT_MAX + 1), or replace them with
something more meaningful?

I would probably go for UINT_MAX and UINT_MAX/2 or something similar, as
it is the overflows that these numbers are causing are very confusing.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list