112657Skvn#!/bin/ksh -p 212657Skvn# 312657Skvn# CDDL HEADER START 412657Skvn# 512657Skvn# The contents of this file are subject to the terms of the 612657Skvn# Common Development and Distribution License (the "License"). 712657Skvn# You may not use this file except in compliance with the License. 812657Skvn# 912657Skvn# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 1012657Skvn# or http://www.opensolaris.org/os/licensing. 1112657Skvn# See the License for the specific language governing permissions 1212657Skvn# and limitations under the License. 1312657Skvn# 1412657Skvn# When distributing Covered Code, include this CDDL HEADER in each 1512657Skvn# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 1612657Skvn# If applicable, add the following below this CDDL HEADER, with the 1712657Skvn# fields enclosed by brackets "[]" replaced with your own identifying 1812657Skvn# information: Portions Copyright [yyyy] [name of copyright owner] 1912657Skvn# 2012657Skvn# CDDL HEADER END 2112657Skvn# 2212657Skvn 2312657Skvn# 2412657Skvn# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 2512657Skvn# Use is subject to license terms. 2612657Skvn# 2712657Skvn 2812657Skvn#ident "%Z%%M% %I% %E% SMI" 2912657Skvn 3012657Skvn## 3112657Skvn# 3212657Skvn# ASSERTION: 3312657Skvn# Testing -i option with invalid probe identifier. 3412657Skvn# 3512657Skvn# SECTION: dtrace Utility/-i Option 3612657Skvn# 3712657Skvn## 3812657Skvn 3912657Skvnif [ $# != 1 ]; then 4012657Skvn echo expected one argument: '<'dtrace-path'>' 4112657Skvn exit 2 4212657Skvnfi 4312657Skvn 4412657Skvndtrace=$1 4512657Skvn 4612657Skvn$dtrace -i i23 4712657Skvn 4812657Skvnif [ $? -ne 1 ]; then 4912657Skvn echo $tst: dtrace failed 5012657Skvn exit 1 5112657Skvnfi 5212657Skvn 5312657Skvnexit 0 5412657Skvn