tst.count3.d revision 267654
118334Speter/*
290075Sobrien * CDDL HEADER START
3169689Skan *
4169689Skan * The contents of this file are subject to the terms of the
518334Speter * Common Development and Distribution License (the "License").
690075Sobrien * You may not use this file except in compliance with the License.
718334Speter *
890075Sobrien * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
990075Sobrien * or http://www.opensolaris.org/os/licensing.
1090075Sobrien * See the License for the specific language governing permissions
1190075Sobrien * and limitations under the License.
1218334Speter *
1390075Sobrien * When distributing Covered Code, include this CDDL HEADER in each
1490075Sobrien * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1590075Sobrien * If applicable, add the following below this CDDL HEADER, with the
1690075Sobrien * fields enclosed by brackets "[]" replaced with your own identifying
1718334Speter * information: Portions Copyright [yyyy] [name of copyright owner]
1818334Speter *
1990075Sobrien * CDDL HEADER END
20169689Skan */
21169689Skan
2218334Speter/*
2318334Speter * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2418334Speter * Use is subject to license terms.
2518334Speter */
2618334Speter
2718334Speter#pragma	ident	"%Z%%M%	%I%	%E% SMI"
2818334Speter
2950397Sobrien/*
30132718Skan * ASSERTION:
31132718Skan * 	Test multiple count() calls.
32117395Skan *
3318334Speter * SECTION: Aggregations/Aggregations
3490075Sobrien *
3590075Sobrien */
3618334Speter
3718334Speter#pragma D option quiet
3818334Speter
39169689SkanBEGIN
4090075Sobrien{
4118334Speter	i = 0;
4218334Speter}
4318334Speter
4418334Spetertick-10ms
4550397Sobrien/i != 10/
4650397Sobrien{
4790075Sobrien	i++;
48132718Skan	@counts1[execname] = count();
49146895Skan	@counts2[execname, arg0] = count();
50169689Skan}
5118334Speter
52132718Skantick-10ms
53132718Skan/i == 10/
5418334Speter{
5518334Speter	exit(0);
5618334Speter}
5718334Speter