aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to '')
-rwxr-xr-x__sum/__test2
-rwxr-xr-xcksum-test/test2
-rwxr-xr-xecho-test/test2
-rwxr-xr-xfalse-test/test2
-rwxr-xr-xpatch-test/test2
-rwxr-xr-xtest-all6
-rwxr-xr-xtest-test/test2
-rwxr-xr-xtrue-test/test2
8 files changed, 10 insertions, 10 deletions
diff --git a/__sum/__test b/__sum/__test
index 1483f76..51678fe 100755
--- a/__sum/__test
+++ b/__sum/__test
@@ -164,7 +164,7 @@ done
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2
diff --git a/cksum-test/test b/cksum-test/test
index 37a62b8..b1de5e2 100755
--- a/cksum-test/test
+++ b/cksum-test/test
@@ -91,7 +91,7 @@ done
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2
diff --git a/echo-test/test b/echo-test/test
index 955a94e..3ff1762 100755
--- a/echo-test/test
+++ b/echo-test/test
@@ -28,7 +28,7 @@ done
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2
diff --git a/false-test/test b/false-test/test
index 73abf08..b7b0798 100755
--- a/false-test/test
+++ b/false-test/test
@@ -78,7 +78,7 @@ done
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2
diff --git a/patch-test/test b/patch-test/test
index ea0b250..2e8b994 100755
--- a/patch-test/test
+++ b/patch-test/test
@@ -1669,7 +1669,7 @@ cat result1 result2 > result
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2
diff --git a/test-all b/test-all
index 60c2139..4b4f24a 100755
--- a/test-all
+++ b/test-all
@@ -33,10 +33,10 @@ for t in $@; do
printf '\033[1mTesting %s ...\033[m\n' "$t"
./${t}-test/test
r=$?
- if test $r = 2; then
- echo $t '(standards-compliant)' >> result
- elif test $r -ge 1; then
+ if test $r -ge 2; then
echo $t >> result
+ elif test $r = 1; then
+ echo $t '(standards-compliant)' >> result
fi
echo
done
diff --git a/test-test/test b/test-test/test
index c524f15..d936077 100755
--- a/test-test/test
+++ b/test-test/test
@@ -570,7 +570,7 @@ done
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2
diff --git a/true-test/test b/true-test/test
index 0b26a05..c3ddd97 100755
--- a/true-test/test
+++ b/true-test/test
@@ -78,7 +78,7 @@ done
! grep FAILED < result > /dev/null
ret=$?
if test $ret != 0; then
- if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 1; then
+ if test $(grep FAILED < result | grep -v NON-POSIX | wc -l) = 0; then
ret=1
else
ret=2