[LTP] [PATCH] connect: Add negative tests for connect

Yang Xu (Fujitsu) xuyang2018.jy@fujitsu.com
Fri May 24 08:47:56 CEST 2024


> Hi Xu,
> 
>> Add negative cases for connect(), when errno is EACCES and EPROTOTYPE
> 
> Similarly to negative test for bind (proposed as bind07 but in the end it was
> added to bind01), wouldn't be better to add this to connect01?
> Unfortunately connect01 requires to be rewritten to the new API first.
> 

Add negative cases when errno is EACCES and EPROTOTYPE.

It would be better to be merged into connect01. However, connect01 is 
written in old API, so I rewrite connect01 in new API first.

Yang Xu(2):
connect01: Convert to new API
connect01: Add negative tests

  testcases/kernel/syscalls/connect/connect01.c | 433 
+++++++++++---------------
  1 file changed, 187 insertions(+), 246 deletions(-)

Best Regards
Yang Xu

> Kind regards,
> Petr


More information about the ltp mailing list