181621461Stomee#!/bin/ksh -p
281621461Stomee#
381621461Stomee# CDDL HEADER START
481621461Stomee#
581621461Stomee# The contents of this file are subject to the terms of the
681621461Stomee# Common Development and Distribution License (the "License").
781621461Stomee# You may not use this file except in compliance with the License.
881621461Stomee#
981621461Stomee# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1081621461Stomee# or http://www.opensolaris.org/os/licensing.
1181621461Stomee# See the License for the specific language governing permissions
1281621461Stomee# and limitations under the License.
1381621461Stomee#
1481621461Stomee# When distributing Covered Code, include this CDDL HEADER in each
1581621461Stomee# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1681621461Stomee# If applicable, add the following below this CDDL HEADER, with the
1781621461Stomee# fields enclosed by brackets "[]" replaced with your own identifying
1881621461Stomee# information: Portions Copyright [yyyy] [name of copyright owner]
1981621461Stomee#
2081621461Stomee# CDDL HEADER END
2181621461Stomee#
2281621461Stomee
2381621461Stomee#
2481621461Stomee# Copyright 2007 Sun Microsystems, Inc.  All rights reserved.
2581621461Stomee# Use is subject to license terms.
2681621461Stomee#
2781621461Stomee
2881621461Stomee# ident	"%Z%%M%	%I%	%E% SMI"
2981621461Stomee
3081621461Stomee############################################################################
3181621461Stomee# ASSERTION:
3281621461Stomee#	Fixed bug 6506495 -DJAVA_DTRACE_MAX_CONSUMERS=N for any N < 8 is
3381621461Stomee#	treated as if it were 8.
3481621461Stomee#
3581621461Stomee# SECTION: Java API
3681621461Stomee#
3781621461Stomee############################################################################
3881621461Stomee
39*91cfa10aStomeejava -cp test.jar TestMaxConsumers
40*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=-1 -cp test.jar TestMaxConsumers
41*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=0 -cp test.jar TestMaxConsumers
42*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=1 -cp test.jar TestMaxConsumers
43*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=2 -cp test.jar TestMaxConsumers
44*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=7 -cp test.jar TestMaxConsumers
45*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=8 -cp test.jar TestMaxConsumers
46*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=9 -cp test.jar TestMaxConsumers
47*91cfa10aStomeejava -DJAVA_DTRACE_MAX_CONSUMERS=19 -cp test.jar TestMaxConsumers
48