Patch the patch...
authorEric Andersen <andersen@codepoet.org>
Fri, 2 Jan 2004 06:49:18 +0000 (06:49 -0000)
committerEric Andersen <andersen@codepoet.org>
Fri, 2 Jan 2004 06:49:18 +0000 (06:49 -0000)
sources/ltp-testsuite.patch

index 1156fd9d0d3d65c92f39f285674d13976694a59c..ae67f4b1d46e89747498828f3767e8086b07a4b7 100644 (file)
 +          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++;
 +          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++;
 +          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++;