tst.MultipleInvalidProbeId.d.ksh revision 178477
11590Srgrimes#!/bin/ksh -p 21590Srgrimes# 31590Srgrimes# CDDL HEADER START 41590Srgrimes# 51590Srgrimes# The contents of this file are subject to the terms of the 61590Srgrimes# Common Development and Distribution License (the "License"). 71590Srgrimes# You may not use this file except in compliance with the License. 81590Srgrimes# 91590Srgrimes# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 101590Srgrimes# or http://www.opensolaris.org/os/licensing. 111590Srgrimes# See the License for the specific language governing permissions 121590Srgrimes# and limitations under the License. 131590Srgrimes# 141590Srgrimes# When distributing Covered Code, include this CDDL HEADER in each 151590Srgrimes# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 161590Srgrimes# If applicable, add the following below this CDDL HEADER, with the 171590Srgrimes# fields enclosed by brackets "[]" replaced with your own identifying 181590Srgrimes# information: Portions Copyright [yyyy] [name of copyright owner] 191590Srgrimes# 201590Srgrimes# CDDL HEADER END 211590Srgrimes# 221590Srgrimes 231590Srgrimes# 241590Srgrimes# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 251590Srgrimes# Use is subject to license terms. 261590Srgrimes# 271590Srgrimes 281590Srgrimes#ident "%Z%%M% %I% %E% SMI" 291590Srgrimes 301590Srgrimes## 311590Srgrimes# 321590Srgrimes# ASSERTION: 3323690Speter# Testing -i option with multiple valid and invalid probe identifiers. 3465064Sbrian# 351590Srgrimes# SECTION: dtrace Utility/-i Option 361590Srgrimes# 37126963Sjmallett## 38126963Sjmallett 39126963Sjmallettif [ $# != 1 ]; then 401590Srgrimes echo expected one argument: '<'dtrace-path'>' 411590Srgrimes exit 2 421590Srgrimesfi 4374586Sache 44102944Sdwmalonedtrace=$1 4599249Smini 46102944Sdwmalone$dtrace -i 12 -i 10 -i 0 47102944Sdwmalone 48102944Sdwmaloneif [ $? -ne 1 ]; then 49102944Sdwmalone echo $tst: dtrace failed 50102944Sdwmalone exit 1 511590Srgrimesfi 5292920Simp 5392920Simpexit 0 5492920Simp