Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/tests/bin/expr Add a check for old PR bin/2486.
details: https://anonhg.NetBSD.org/src/rev/d0fdc9eea709
branches: trunk
changeset: 778449:d0fdc9eea709
user: jruoho <jruoho%NetBSD.org@localhost>
date: Tue Mar 27 07:23:06 2012 +0000
description:
Add a check for old PR bin/2486.
diffstat:
tests/bin/expr/t_expr.sh | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (37 lines):
diff -r 29cf9dc63e80 -r d0fdc9eea709 tests/bin/expr/t_expr.sh
--- a/tests/bin/expr/t_expr.sh Tue Mar 27 07:09:03 2012 +0000
+++ b/tests/bin/expr/t_expr.sh Tue Mar 27 07:23:06 2012 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_expr.sh,v 1.2 2012/03/20 06:30:02 jruoho Exp $
+# $NetBSD: t_expr.sh,v 1.3 2012/03/27 07:23:06 jruoho Exp $
#
# Copyright (c) 2007 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -36,6 +36,19 @@
fi
}
+atf_test_case lang
+lang_ops_head() {
+ atf_set "descr" "Test that expr(1) works with non-C LANG (PR bin/2486)"
+}
+lang_body() {
+
+ export LANG=nonexistent
+ atf_check -s exit:0 -o inline:"21\n" -e empty -x "expr 10 + 11"
+
+ export LANG=ru_RU.KOI8-R
+ atf_check -s exit:0 -o inline:"21\n" -e empty -x "expr 10 + 11"
+}
+
atf_test_case overflow
overflow_head() {
atf_set "descr" "Test overflow cases"
@@ -198,6 +211,7 @@
atf_init_test_cases()
{
+ atf_add_test_case lang
atf_add_test_case overflow
atf_add_test_case gtkmm
atf_add_test_case colon_vs_math
Home |
Main Index |
Thread Index |
Old Index