summaryrefslogtreecommitdiffstats
path: root/contrib
diff options
context:
space:
mode:
authorngie <ngie@FreeBSD.org>2015-01-23 00:34:19 +0000
committerngie <ngie@FreeBSD.org>2015-01-23 00:34:19 +0000
commit4c2adfc90569e979ffeb0a46eeaf41fee7d29460 (patch)
tree6f3468187f3ce0f6560a73a0cdb40a3dc1c8e390 /contrib
parent09176354ca21319846ad5e4bbbd8d57845c2d276 (diff)
downloadFreeBSD-src-4c2adfc90569e979ffeb0a46eeaf41fee7d29460.zip
FreeBSD-src-4c2adfc90569e979ffeb0a46eeaf41fee7d29460.tar.gz
MFC r276671,r277357:
r276671 (by ngie): Expect :arithmetic_ops_body to fail with syntax errors on FreeBSD Sponsored by: EMC / Isilon Storage Division r277357 (by ngie): Expect :overflow to fail with FreeBSD's expr as it doesn't have stringent overflow checks like NetBSD's expr does PR: 196867
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/netbsd-tests/bin/expr/t_expr.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/contrib/netbsd-tests/bin/expr/t_expr.sh b/contrib/netbsd-tests/bin/expr/t_expr.sh
index 4f9d596..ef99b02 100755
--- a/contrib/netbsd-tests/bin/expr/t_expr.sh
+++ b/contrib/netbsd-tests/bin/expr/t_expr.sh
@@ -54,6 +54,9 @@ overflow_head() {
atf_set "descr" "Test overflow cases"
}
overflow_body() {
+ # Begin FreeBSD
+ atf_expect_fail "FreeBSD's expr does not check overflow to the same degree NetBSD's expr does; see bug 196867 for more details"
+ # End FreeBSD
test_expr '4611686018427387904 + 4611686018427387903' \
'9223372036854775807'
test_expr '4611686018427387904 + 4611686018427387904' \
@@ -105,6 +108,9 @@ arithmetic_ops_head() {
atf_set "descr" "Dangling arithemtic operator"
}
arithmetic_ops_body() {
+ # Begin FreeBSD
+ atf_expect_fail "the following testcases fail with syntax errors on FreeBSD"
+ # End FreeBSD
test_expr '.java_wrapper : /' '0'
test_expr '4 : \*' '0'
test_expr '4 : +' '0'
OpenPOWER on IntegriCloud