bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 23/34] tests: make fmbtest explain (to stderr, not log) why it is


From: Jim Meyering
Subject: [PATCH 23/34] tests: make fmbtest explain (to stderr, not log) why it is skipped
Date: Thu, 15 Sep 2011 12:28:06 +0200

From: Jim Meyering <address@hidden>

* tests/fmbtest: Use skip_ and fail_ to give better diagnostics.
---
 tests/fmbtest |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/fmbtest b/tests/fmbtest
index b07d19d..4e4ee89 100755
--- a/tests/fmbtest
+++ b/tests/fmbtest
@@ -16,9 +16,9 @@ LC_ALL=$cz locale -k LC_CTYPE 2>/dev/null | grep -q 
charmap.*UTF-8 \
 # If matching is done in single-byte mode, skip this test too
 printf 'é\n' | LC_ALL=$cz grep -Eq '^[é]{2}$'
 case $? in
-  0) skip_test_ this test works only in multibyte mode;;
+  0) skip_ "built without multi-byte support";;
   1) ;;
-  *) framework_failure_ grep exited with unexpected status $? ;;
+  *) fail_ "unexpected exit status: $?";;
 esac

 failures=0
-- 
1.7.7.rc0.362.g5a14




reply via email to

[Prev in Thread] Current Thread [Next in Thread]