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 3 more expr(1) ATF tests detecting overflow
details: https://anonhg.NetBSD.org/src/rev/aa295dceb461
branches: trunk
changeset: 362843:aa295dceb461
user: kamil <kamil%NetBSD.org@localhost>
date: Wed Jun 27 17:39:30 2018 +0000
description:
Add 3 more expr(1) ATF tests detecting overflow
Verify 0 * INT.
diffstat:
tests/bin/expr/t_expr.sh | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r fe53197e0a68 -r aa295dceb461 tests/bin/expr/t_expr.sh
--- a/tests/bin/expr/t_expr.sh Wed Jun 27 17:23:36 2018 +0000
+++ b/tests/bin/expr/t_expr.sh Wed Jun 27 17:39:30 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: t_expr.sh,v 1.5 2018/06/27 17:14:47 kamil Exp $
+# $NetBSD: t_expr.sh,v 1.6 2018/06/27 17:39:30 kamil Exp $
#
# Copyright (c) 2007 The NetBSD Foundation, Inc.
# All rights reserved.
@@ -96,6 +96,9 @@
"expr: integer overflow or underflow occurred for operation '-4611686018427387904 * -2'"
test_expr '-4611686018427387904 \* -3' \
"expr: integer overflow or underflow occurred for operation '-4611686018427387904 * -3'"
+ test_expr '0 \* -1' '0'
+ test_expr '0 \* 0' '0'
+ test_expr '0 \* 1' '0'
}
atf_test_case gtkmm
Home |
Main Index |
Thread Index |
Old Index