[LTP] [PATCH] syscalls/memcmp01: Convert to new API
    Li Wang 
    liwang@redhat.com
       
    Mon Jul 26 10:48:37 CEST 2021
    
    
  
Hi Lianjie,
Given the fact that the return value of memcmp() is possible
to less than, equal to, and greater than zero in str1 and str2
comparison.
So I made a change on the return value check to make
it more accurate in the testing.
e.g.
(!memcmp(str1, str2, n))  ==> (memcmp(str1, str2, n) <= 0);    str > str2
(!memcmp(str1, str2, n))  ==> (memcmp(str1, str2, n) >= 0);    str < str2
Besides that, I applied your patch with some cleanup work as well.
-- 
Regards,
Li Wang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linux.it/pipermail/ltp/attachments/20210726/551fdafe/attachment-0001.htm>
    
    
More information about the ltp
mailing list