diff options
author | Mark Johnston <markj@FreeBSD.org> | 2017-08-21 21:58:42 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2017-08-21 21:58:42 +0000 |
commit | a3a7b74e18a19c7946f9ac716666366ca00fbacc (patch) | |
tree | a17731cb89fdc1c1f70f529b96b394ad88b41cf6 /cddl/contrib/opensolaris/cmd/dtrace | |
parent | ce4da6fccce6a1118efaba00c57b5a916295bf6b (diff) | |
download | src-a3a7b74e18a19c7946f9ac716666366ca00fbacc.tar.gz src-a3a7b74e18a19c7946f9ac716666366ca00fbacc.zip |
Add a regression test for r322773.
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=322774
Diffstat (limited to 'cddl/contrib/opensolaris/cmd/dtrace')
-rw-r--r-- | cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d new file mode 100644 index 000000000000..9e6eb3e941bf --- /dev/null +++ b/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d @@ -0,0 +1,35 @@ +/* + * CDDL HEADER START + * + * The contents of this file are subject to the terms of the + * Common Development and Distribution License (the "License"). + * You may not use this file except in compliance with the License. + * + * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE + * or http://www.opensolaris.org/os/licensing. + * See the License for the specific language governing permissions + * and limitations under the License. + * + * When distributing Covered Code, include this CDDL HEADER in each + * file and include the License file at usr/src/OPENSOLARIS.LICENSE. + * If applicable, add the following below this CDDL HEADER, with the + * fields enclosed by brackets "[]" replaced with your own identifying + * information: Portions Copyright [yyyy] [name of copyright owner] + * + * CDDL HEADER END + */ + +/* + * Copyright (c) 2017 Mark Johnston <markj@FreeBSD.org> + */ + +/* + * A regression test for FreeBSD r322773. 100^9 fits in 64 bits, but + * llquantize() will create buckets up to 100^{10}, which does not fit. + */ + +BEGIN +{ + @ = llquantize(0, 100, 0, 9, 100); + exit(0); +} |