[LTP] [PATCH v4 2/2] getdtablesize01: Handle ENFILE errno

Cyril Hrubis chrubis@suse.cz
Mon Dec 11 14:18:37 CET 2017


Hi!
> @@ -97,6 +98,8 @@ int main(void)
>  		close(count);
>  	if (count == (max_val_opfiles - 1))
>  		tst_resm(TPASS, "%d = %d", count, (max_val_opfiles - 1));
> +	else if (fd < 0 && errno == ENFILE)
> +		tst_brkm(TBROK, cleanup, "Reached maximum number of open files for the system");
                           ^
			   Haven't we agreed that this should be TCONF?

No need to resend, I can update it before push.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list