Module Name:    src
Committed By:   kre
Date:           Thu May 12 13:34:23 UTC 2016

Modified Files:
        src/tests/bin/sh: t_arith.sh

Log Message:
Verify that questionable characters don't have bad associates.

ok christos@


To generate a diff of this commit:
cvs rdiff -u -r1.3 -r1.4 src/tests/bin/sh/t_arith.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/sh/t_arith.sh
diff -u src/tests/bin/sh/t_arith.sh:1.3 src/tests/bin/sh/t_arith.sh:1.4
--- src/tests/bin/sh/t_arith.sh:1.3	Thu Mar 31 16:19:52 2016
+++ src/tests/bin/sh/t_arith.sh	Thu May 12 13:34:23 2016
@@ -1,4 +1,4 @@
-# $NetBSD: t_arith.sh,v 1.3 2016/03/31 16:19:52 christos Exp $
+# $NetBSD: t_arith.sh,v 1.4 2016/05/12 13:34:23 kre Exp $
 #
 # Copyright (c) 2016 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -834,6 +834,13 @@ make_selection_body()
 
 	atf_check -s exit:0 -o inline:'111\n' -e empty ${TEST_SH} -c \
 		'echo $(( 0x1234 ? 111 : 222 ))'
+
+	atf_check -s exit:0 -o inline:'-1\n' -e empty ${TEST_SH} -c \
+		'echo $(( 1 < 2 ? -1 : i > 2 ? 1 : 0 ))'
+	atf_check -s exit:0 -o inline:'0\n' -e empty ${TEST_SH} -c \
+		'echo $(( 1 < 1 ? -1 : i > 1 ? 1 : 0 ))'
+	atf_check -s exit:0 -o inline:'1\n' -e empty ${TEST_SH} -c \
+		'echo $(( 2 < 1 ? -1 : 2 > 1 ? 1 : 0 ))'
 }
 
 atf_test_case operator_precedence

Reply via email to