11844Swollman#!/bin/ksh -p 250476Speter# 31638Srgrimes# CDDL HEADER START 438183Speter# 538183Speter# The contents of this file are subject to the terms of the 61844Swollman# Common Development and Distribution License (the "License"). 71638Srgrimes# You may not use this file except in compliance with the License. 81638Srgrimes# 938183Speter# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE 101638Srgrimes# or http://www.opensolaris.org/os/licensing. 1136673Sdt# See the License for the specific language governing permissions 121638Srgrimes# and limitations under the License. 132827Sjkh# 141638Srgrimes# When distributing Covered Code, include this CDDL HEADER in each 152827Sjkh# file and include the License file at usr/src/OPENSOLARIS.LICENSE. 161638Srgrimes# If applicable, add the following below this CDDL HEADER, with the 172827Sjkh# fields enclosed by brackets "[]" replaced with your own identifying 181638Srgrimes# information: Portions Copyright [yyyy] [name of copyright owner] 1927028Spst# 201844Swollman# CDDL HEADER END 211844Swollman# 221638Srgrimes 231638Srgrimes# 241638Srgrimes# Copyright 2006 Sun Microsystems, Inc. All rights reserved. 251638Srgrimes# Use is subject to license terms. 2636054Sbde# 2736054Sbde 2836054Sbde#ident "%Z%%M% %I% %E% SMI" 2936054Sbde 3036054Sbde## 3136054Sbde# 321844Swollman# ASSERTION: 331638Srgrimes# Testing -f option with an invalid function name. 3434081Sbde# 351844Swollman# SECTION: dtrace Utility/-f Option 361844Swollman# 378321Sbde## 381844Swollman 3933624Seivindif [ $# != 1 ]; then 402351Sbde echo expected one argument: '<'dtrace-path'>' 411638Srgrimes exit 2 422351Sbdefi 432351Sbde 442351Sbdedtrace=$1 452351Sbde 462351Sbde$dtrace -f BEGIN 472351Sbde 4833624Seivindif [ $? -ne 1 ]; then 4934081Sbde echo $tst: dtrace failed 502351Sbde exit 1 5133624Seivindfi 521638Srgrimes 531638Srgrimesexit 0 541638Srgrimes