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

Punit Agrawal punit.agrawal@arm.com
Wed Dec 20 11:55:57 CET 2017


[ Apologies for the delayed response. I am travelling with spotty
connectivity ]

Cyril Hrubis <chrubis@suse.cz> writes:

> 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?

Yup, I was sure I'd updated it as well. I might have lost the change
moving the patches across branches.

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

Yes, please. :)

Thanks,
Punit


More information about the ltp mailing list