Changeset View
Changeset View
Standalone View
Standalone View
bin/expr/t_expr.sh
Property | Old Value | New Value |
---|---|---|
File Mode | 100755 | 100644 |
# $NetBSD: t_expr.sh,v 1.3 2012/03/27 07:23:06 jruoho Exp $ | # $NetBSD: t_expr.sh,v 1.6 2018/06/27 17:39:30 kamil Exp $ | ||||
# | # | ||||
# Copyright (c) 2007 The NetBSD Foundation, Inc. | # Copyright (c) 2007 The NetBSD Foundation, Inc. | ||||
# All rights reserved. | # All rights reserved. | ||||
# | # | ||||
# Redistribution and use in source and binary forms, with or without | # Redistribution and use in source and binary forms, with or without | ||||
# modification, are permitted provided that the following conditions | # modification, are permitted provided that the following conditions | ||||
# are met: | # are met: | ||||
# 1. Redistributions of source code must retain the above copyright | # 1. Redistributions of source code must retain the above copyright | ||||
▲ Show 20 Lines • Show All 61 Lines • ▼ Show 20 Lines | test_expr '-4611686018427387904 \* 3' \ | ||||
"expr: integer overflow or underflow occurred for operation '-4611686018427387904 * 3'" | "expr: integer overflow or underflow occurred for operation '-4611686018427387904 * 3'" | ||||
test_expr '-4611686018427387904 \* -2' \ | test_expr '-4611686018427387904 \* -2' \ | ||||
"expr: integer overflow or underflow occurred for operation '-4611686018427387904 * -2'" | "expr: integer overflow or underflow occurred for operation '-4611686018427387904 * -2'" | ||||
test_expr '4611686018427387904 \* 1' '4611686018427387904' | test_expr '4611686018427387904 \* 1' '4611686018427387904' | ||||
test_expr '4611686018427387904 \* 2' \ | test_expr '4611686018427387904 \* 2' \ | ||||
"expr: integer overflow or underflow occurred for operation '4611686018427387904 * 2'" | "expr: integer overflow or underflow occurred for operation '4611686018427387904 * 2'" | ||||
test_expr '4611686018427387904 \* 3' \ | test_expr '4611686018427387904 \* 3' \ | ||||
"expr: integer overflow or underflow occurred for operation '4611686018427387904 * 3'" | "expr: integer overflow or underflow occurred for operation '4611686018427387904 * 3'" | ||||
test_expr '-9223372036854775808 % -1' \ | |||||
"expr: integer overflow or underflow occurred for operation '-9223372036854775808 % -1'" | |||||
test_expr '-9223372036854775808 / -1' \ | |||||
"expr: integer overflow or underflow occurred for operation '-9223372036854775808 / -1'" | |||||
test_expr '0 + -9223372036854775808' '-9223372036854775808' | |||||
test_expr '0 + -1' '-1' | |||||
test_expr '0 + 0' '0' | |||||
test_expr '0 + 1' '1' | |||||
test_expr '0 + 9223372036854775807' '9223372036854775807' | |||||
test_expr '-9223372036854775808 + 0' '-9223372036854775808' | |||||
test_expr '9223372036854775807 + 0' '9223372036854775807' | |||||
test_expr '4611686018427387904 \* -1' '-4611686018427387904' | |||||
test_expr '4611686018427387904 \* -2' '-9223372036854775808' | |||||
test_expr '4611686018427387904 \* -3' \ | |||||
"expr: integer overflow or underflow occurred for operation '4611686018427387904 * -3'" | |||||
test_expr '-4611686018427387904 \* -1' '4611686018427387904' | |||||
test_expr '-4611686018427387904 \* -2' \ | |||||
"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 | atf_test_case gtkmm | ||||
gtkmm_head() { | gtkmm_head() { | ||||
atf_set "descr" "Test from gtk-- configure that cause problems on old expr" | atf_set "descr" "Test from gtk-- configure that cause problems on old expr" | ||||
} | } | ||||
gtkmm_body() { | gtkmm_body() { | ||||
test_expr '3 \> 3 \| 3 = 3 \& 4 \> 4 \| 3 = 3 \& 4 = 4 \& 5 \>= 5' '1' | test_expr '3 \> 3 \| 3 = 3 \& 4 \> 4 \| 3 = 3 \& 4 = 4 \& 5 \>= 5' '1' | ||||
▲ Show 20 Lines • Show All 142 Lines • Show Last 20 Lines |