tst.args.d revision 2633:71bab08d24b2
133088Sache/*
233088Sache * CDDL HEADER START
333088Sache *
433088Sache * The contents of this file are subject to the terms of the
533088Sache * Common Development and Distribution License (the "License").
633088Sache * You may not use this file except in compliance with the License.
733088Sache *
833088Sache * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
933088Sache * or http://www.opensolaris.org/os/licensing.
1033088Sache * See the License for the specific language governing permissions
1133088Sache * and limitations under the License.
1233088Sache *
1333088Sache * When distributing Covered Code, include this CDDL HEADER in each
1433088Sache * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1533088Sache * If applicable, add the following below this CDDL HEADER, with the
1633088Sache * fields enclosed by brackets "[]" replaced with your own identifying
1733088Sache * information: Portions Copyright [yyyy] [name of copyright owner]
1833088Sache *
1933088Sache * CDDL HEADER END
2033088Sache */
2133088Sache
2233088Sache/*
2333088Sache * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
2433088Sache * Use is subject to license terms.
25116075Simp */
26116075Simp
2733088Sache#pragma ident	"%Z%%M%	%I%	%E% SMI"
2833088Sache
2933088Sache/*
3033088Sache * ASSERTION:
3133088Sache *
3233088Sache * SECTION:
3333088Sache *
3433088Sache * NOTES:
3533088Sache *
36116075Simp */
3733088SacheBEGIN
3833088Sache{
3933088Sache	/* Timeout after 5 seconds */
4033088Sache	timeout = timestamp + 5000000000;
4133088Sache}
4233088Sache
4333088Sachetest_prov$1:::place
4433088Sache/arg0 == 10 && arg1 == 4/
4533088Sache{
4633088Sache	exit(0);
4733088Sache}
4833088Sache
4933088Sachetest_prov$1:::place
5033088Sache{
5133088Sache	printf("args are %d, %d; should be 10, 4", arg0, arg1);
5233088Sache	exit(1);
5333088Sache}
5433088Sache
5533088Sacheprofile:::tick-1
5633088Sache/timestamp > timeout/
5733088Sache{
5833088Sache	trace("test timed out");
5933088Sache	exit(1);
6033088Sache}
6133088Sache