tst.ZeroProbeIdentfier.d.ksh revision 2633:71bab08d24b2
11206Ssundar#!/bin/ksh -p
21206Ssundar#
31206Ssundar# CDDL HEADER START
41206Ssundar#
51206Ssundar# The contents of this file are subject to the terms of the
61206Ssundar# Common Development and Distribution License (the "License").
71206Ssundar# You may not use this file except in compliance with the License.
81206Ssundar#
91206Ssundar# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
101206Ssundar# or http://www.opensolaris.org/os/licensing.
111206Ssundar# See the License for the specific language governing permissions
121206Ssundar# and limitations under the License.
131206Ssundar#
141206Ssundar# When distributing Covered Code, include this CDDL HEADER in each
151206Ssundar# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
161206Ssundar# If applicable, add the following below this CDDL HEADER, with the
171206Ssundar# fields enclosed by brackets "[]" replaced with your own identifying
181206Ssundar# information: Portions Copyright [yyyy] [name of copyright owner]
191206Ssundar#
201206Ssundar# CDDL HEADER END
211206Ssundar#
221206Ssundar
231206Ssundar#
241206Ssundar# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
251206Ssundar# Use is subject to license terms.
261206Ssundar#
271206Ssundar
281206Ssundar#ident	"%Z%%M%	%I%	%E% SMI"
291206Ssundar
301206Ssundar##
311206Ssundar#
321206Ssundar# ASSERTION:
331206Ssundar# Testing -i option with zero probe identifier.
341206Ssundar#
351206Ssundar# SECTION: dtrace Utility/-i Option
361206Ssundar#
371206Ssundar##
381206Ssundar
391206Ssundardtrace=/usr/sbin/dtrace
401206Ssundar
411206Ssundar$dtrace -i 0
421206Ssundar
431206Ssundarif [ $? -ne 1 ]; then
441206Ssundar	echo $tst: dtrace failed
451206Ssundar	exit 1
461206Ssundarfi
471206Ssundar
481206Ssundarexit 0
491206Ssundar