summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2004-01-02 06:58:36 +0000
committerEric Andersen <andersen@codepoet.org>2004-01-02 06:58:36 +0000
commit60983a8faa83a9169ed294c6361289e8b1beca9f (patch)
tree93cf0c549c55b5776a5d311f06294ad7c2080e10
parent81036b2f80bc16a22e90dc5debeb83ef7947a5d0 (diff)
downloadbuildroot-novena-60983a8faa83a9169ed294c6361289e8b1beca9f.tar.gz
buildroot-novena-60983a8faa83a9169ed294c6361289e8b1beca9f.zip
A bit more tateful this time
-rw-r--r--sources/ltp-testsuite.patch44
1 files changed, 9 insertions, 35 deletions
diff --git a/sources/ltp-testsuite.patch b/sources/ltp-testsuite.patch
index ae67f4b1d..418cb6dd4 100644
--- a/sources/ltp-testsuite.patch
+++ b/sources/ltp-testsuite.patch
@@ -104,45 +104,19 @@
char nobody_uid[] = "nobody";
struct passwd *ltpuser;
---- ltp-full-20031204/testcases/kernel/syscalls/string/string01.orig.c 2004-01-01 20:47:26.000000000 -0700
-+++ ltp-full-20031204/testcases/kernel/syscalls/string/string01.c 2004-01-01 23:24:26.000000000 -0700
-@@ -413,13 +413,33 @@
+--- ltp-full-20031106/testcases/kernel/syscalls/string/string01.orig.c 2004-01-01 23:54:37.000000000 -0700
++++ ltp-full-20031106/testcases/kernel/syscalls/string/string01.c 2004-01-01 23:55:48.000000000 -0700
+@@ -413,10 +413,10 @@
//fprintf(temp, "\tStrncmp\n" );
i = 0;
while ( t_ncmp[i].s1 ) {
- if ((n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n ))
- != t_ncmp[i].e_res) {
-- fprintf(temp, "(Strncmp) test %d: expected %d, got %d",
++ n = strncmp( t_ncmp[i].s1, t_ncmp[i].s2, t_ncmp[i].n );
++ if (sign(n) != sign(t_ncmp[i].e_res)) {
+ fprintf(temp, "(Strncmp) test %d: expected %d, got %d",
- i, t_ncmp[i].e_res, n );
-- local_flag = FAILED;
-+ 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 0, got %d",
-+ i, n );
-+ local_flag = FAILED;
++ i, sign(t_ncmp[i].e_res), sign(n) );
+ local_flag = FAILED;
}
-- i++;
-+ 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 > 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 < 0, got %d",
-+ i, n );
-+ local_flag = FAILED;
-+ }
-+ i++;
-+ }
- }
-
- /*
+ i++;