tst.InvalidProvider3.d.ksh revision 256281
1230130Smav#!/bin/ksh -p
2230130Smav#
3230130Smav# CDDL HEADER START
4230130Smav#
5230130Smav# The contents of this file are subject to the terms of the
6230130Smav# Common Development and Distribution License (the "License").
7230130Smav# You may not use this file except in compliance with the License.
8230130Smav#
9230130Smav# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
10230130Smav# or http://www.opensolaris.org/os/licensing.
11230130Smav# See the License for the specific language governing permissions
12230130Smav# and limitations under the License.
13230130Smav#
14230130Smav# When distributing Covered Code, include this CDDL HEADER in each
15230130Smav# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
16230130Smav# If applicable, add the following below this CDDL HEADER, with the
17230130Smav# fields enclosed by brackets "[]" replaced with your own identifying
18230130Smav# information: Portions Copyright [yyyy] [name of copyright owner]
19230130Smav#
20230130Smav# CDDL HEADER END
21230130Smav#
22230130Smav
23230130Smav#
24230130Smav# Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
25230130Smav# Use is subject to license terms.
26230130Smav#
27230130Smav
28230130Smav#ident	"%Z%%M%	%I%	%E% SMI"
29230130Smav
30230130Smav##
31230130Smav#
32230130Smav# ASSERTION:
33230130Smav# The -lP option can be used to list the probes from their provider names.
34230130Smav# Invalid module names result in error.
35230130Smav#
36230130Smav# SECTION: dtrace Utility/-l Option;
37230130Smav# 	dtrace Utility/-P Option
38230130Smav#
39230130Smav##
40230130Smav
41230130Smavif [ $# != 1 ]; then
42230130Smav	echo expected one argument: '<'dtrace-path'>'
43230130Smav	exit 2
44230130Smavfi
45230130Smav
46230130Smavdtrace=$1
47230130Smav
48230130Smav$dtrace -lP fbt:des:des3_crunch_block:return
49230130Smav
50230130Smavstatus=$?
51230130Smav
52230130Smavecho $status
53230130Smav
54230130Smavif [ "$status" -ne 0 ]; then
55230130Smav	exit 0
56230130Smavfi
57230130Smav
58230130Smavecho $tst: dtrace failed
59230130Smavexit $status
60230130Smav