Module Name:    src
Committed By:   jruoho
Date:           Tue Mar 27 07:23:06 UTC 2012

Modified Files:
        src/tests/bin/expr: t_expr.sh

Log Message:
Add a check for old PR bin/2486.


To generate a diff of this commit:
cvs rdiff -u -r1.2 -r1.3 src/tests/bin/expr/t_expr.sh

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/tests/bin/expr/t_expr.sh
diff -u src/tests/bin/expr/t_expr.sh:1.2 src/tests/bin/expr/t_expr.sh:1.3
--- src/tests/bin/expr/t_expr.sh:1.2	Tue Mar 20 06:30:02 2012
+++ src/tests/bin/expr/t_expr.sh	Tue Mar 27 07:23:06 2012
@@ -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 @@ test_expr() {
 	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 @@ regex_body() {
 
 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

Reply via email to