Loading sources/ltp-testsuite.patch +6 −6 Original line number Diff line number Diff line Loading @@ -118,8 +118,8 @@ + if (t_ncmp[i].e_res==0) { + if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n )) + != 0) { + fprintf(temp, "(Strncmp) test %d: expected %d, got %d", + i, t_ncmp[i].e_res, n ); + fprintf(temp, "(Strncmp) test %d: expected 0, got %d", + i, n ); + local_flag = FAILED; } - i++; Loading @@ -128,8 +128,8 @@ + if (t_ncmp[i].e_res>0) { + if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n )) + < 1) { + fprintf(temp, "(Strncmp) test %d: expected %d, got %d", + i, t_ncmp[i].e_res, n ); + fprintf(temp, "(Strncmp) test %d: expected > 0, got %d", + i, n ); + local_flag = FAILED; + } + i++; Loading @@ -137,8 +137,8 @@ + if (t_ncmp[i].e_res<0) { + if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n )) + > 1) { + fprintf(temp, "(Strncmp) test %d: expected %d, got %d", + i, t_ncmp[i].e_res, n ); + fprintf(temp, "(Strncmp) test %d: expected < 0, got %d", + i, n ); + local_flag = FAILED; + } + i++; Loading Loading
sources/ltp-testsuite.patch +6 −6 Original line number Diff line number Diff line Loading @@ -118,8 +118,8 @@ + if (t_ncmp[i].e_res==0) { + if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n )) + != 0) { + fprintf(temp, "(Strncmp) test %d: expected %d, got %d", + i, t_ncmp[i].e_res, n ); + fprintf(temp, "(Strncmp) test %d: expected 0, got %d", + i, n ); + local_flag = FAILED; } - i++; Loading @@ -128,8 +128,8 @@ + if (t_ncmp[i].e_res>0) { + if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n )) + < 1) { + fprintf(temp, "(Strncmp) test %d: expected %d, got %d", + i, t_ncmp[i].e_res, n ); + fprintf(temp, "(Strncmp) test %d: expected > 0, got %d", + i, n ); + local_flag = FAILED; + } + i++; Loading @@ -137,8 +137,8 @@ + if (t_ncmp[i].e_res<0) { + if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n )) + > 1) { + fprintf(temp, "(Strncmp) test %d: expected %d, got %d", + i, t_ncmp[i].e_res, n ); + fprintf(temp, "(Strncmp) test %d: expected < 0, got %d", + i, n ); + local_flag = FAILED; + } + i++; Loading