Index: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d =================================================================== --- head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d (nonexistent) +++ head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d (revision 322774) @@ -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 + */ + +/* + * 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); +} Property changes on: head/cddl/contrib/opensolaris/cmd/dtrace/test/tst/common/llquantize/err.D_LLQUANT_MAGTOOBIG.offbyone.d ___________________________________________________________________ Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/cddl/usr.sbin/dtrace/tests/common/llquantize/Makefile =================================================================== --- head/cddl/usr.sbin/dtrace/tests/common/llquantize/Makefile (revision 322773) +++ head/cddl/usr.sbin/dtrace/tests/common/llquantize/Makefile (revision 322774) @@ -1,52 +1,53 @@ # $FreeBSD$ # # This Makefile was generated by $srcdir/cddl/usr.sbin/dtrace/tests/tools/genmakefiles.sh. # PACKAGE= tests ${PACKAGE}FILES= \ err.D_LLQUANT_FACTOREVEN.nodivide.d \ err.D_LLQUANT_FACTOREVEN.notfactor.d \ err.D_LLQUANT_FACTORMATCH.d \ err.D_LLQUANT_FACTORNSTEPS.d \ err.D_LLQUANT_FACTORSMALL.d \ err.D_LLQUANT_FACTORTYPE.d \ err.D_LLQUANT_FACTORVAL.d \ err.D_LLQUANT_HIGHMATCH.d \ err.D_LLQUANT_HIGHTYPE.d \ err.D_LLQUANT_HIGHVAL.d \ err.D_LLQUANT_LOWMATCH.d \ err.D_LLQUANT_LOWTYPE.d \ err.D_LLQUANT_LOWVAL.d \ err.D_LLQUANT_MAGRANGE.d \ err.D_LLQUANT_MAGTOOBIG.d \ + err.D_LLQUANT_MAGTOOBIG.offbyone.d \ err.D_LLQUANT_NSTEPMATCH.d \ err.D_LLQUANT_NSTEPTYPE.d \ err.D_LLQUANT_NSTEPVAL.d \ tst.bases.d \ tst.bases.d.out \ tst.basic.d \ tst.basic.d.out \ tst.negorder.d \ tst.negorder.d.out \ tst.negvalue.d \ tst.negvalue.d.out \ tst.normal.d \ tst.normal.d.out \ tst.range.d \ tst.range.d.out \ tst.steps.d \ tst.steps.d.out \ tst.trunc.d \ tst.trunc.d.out \ TESTEXES= \ CFILES= \ .include "../../dtrace.test.mk"