1*eda14cbcSMatt Macy#!/bin/ksh -p
2*eda14cbcSMatt Macy#
3*eda14cbcSMatt Macy# This file and its contents are supplied under the terms of the
4*eda14cbcSMatt Macy# Common Development and Distribution License ("CDDL"), version 1.0.
5*eda14cbcSMatt Macy# You may only use this file in accordance with the terms of version
6*eda14cbcSMatt Macy# 1.0 of the CDDL.
7*eda14cbcSMatt Macy#
8*eda14cbcSMatt Macy# A full copy of the text of the CDDL should have accompanied this
9*eda14cbcSMatt Macy# source.  A copy of the CDDL is also available via the Internet at
10*eda14cbcSMatt Macy# http://www.illumos.org/license/CDDL.
11*eda14cbcSMatt Macy#
12*eda14cbcSMatt Macy
13*eda14cbcSMatt Macy#
14*eda14cbcSMatt Macy# Copyright (c) 2016 by Delphix. All rights reserved.
15*eda14cbcSMatt Macy#
16*eda14cbcSMatt Macy
17*eda14cbcSMatt Macy. $STF_SUITE/tests/functional/channel_program/channel_common.kshlib
18*eda14cbcSMatt Macy
19*eda14cbcSMatt Macy#
20*eda14cbcSMatt Macy# DESCRIPTION:
21*eda14cbcSMatt Macy#       Getting failures should work correctly.
22*eda14cbcSMatt Macy#
23*eda14cbcSMatt Macy
24*eda14cbcSMatt Macyverify_runnable "global"
25*eda14cbcSMatt Macyfs=$TESTPOOL/$TESTFS/testchild
26*eda14cbcSMatt Macyfunction cleanup
27*eda14cbcSMatt Macy{
28*eda14cbcSMatt Macy	destroy_dataset $fs
29*eda14cbcSMatt Macy}
30*eda14cbcSMatt Macy
31*eda14cbcSMatt Macylog_onexit cleanup
32*eda14cbcSMatt Macy
33*eda14cbcSMatt Macylog_must zfs create $fs
34*eda14cbcSMatt Macy
35*eda14cbcSMatt Macylog_mustnot_program $TESTPOOL - <<-EOF
36*eda14cbcSMatt Macy	ans, setpoint = zfs.get_prop("$fs", "notaprop")
37*eda14cbcSMatt MacyEOF
38*eda14cbcSMatt Macy
39*eda14cbcSMatt Macylog_mustnot_program $TESTPOOL - <<-EOF
40*eda14cbcSMatt Macy	ans, setpoint = zfs.get_prop("notadataset", "type")
41*eda14cbcSMatt MacyEOF
42*eda14cbcSMatt Macy
43*eda14cbcSMatt Macylog_pass "Getting failures should work correctly."
44