150477Speter# $NetBSD: t_nonexistent.sh,v 1.4 2012/03/18 09:46:50 jruoho Exp $ 238465Smsmith# 3344399Skevans# Copyright (c) 2011 The NetBSD Foundation, Inc. 4329140Skevans# All rights reserved. 5329140Skevans# 6329140Skevans# This code is derived from software contributed to The NetBSD Foundation 7329140Skevans# by Jukka Ruohonen. 8332130Skevans# 9332130Skevans# Redistribution and use in source and binary forms, with or without 10332130Skevans# modification, are permitted provided that the following conditions 11329140Skevans# are met: 12329140Skevans# 1. Redistributions of source code must retain the above copyright 13329140Skevans# notice, this list of conditions and the following disclaimer. 14329140Skevans# 2. Redistributions in binary form must reproduce the above copyright 15329140Skevans# notice, this list of conditions and the following disclaimer in the 16329140Skevans# documentation and/or other materials provided with the distribution. 17344413Skevans# 18199714Srnoland# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 19125621Sru# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 20212066Sdelphij# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 21312556Semaste# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 2238465Smsmith# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 23329140Skevans# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 24329140Skevans# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 2539441Smsmith# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 26329100Skevans# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 2739441Smsmith# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 28163893Smarcel# POSSIBILITY OF SUCH DAMAGE. 29163893Smarcel# 30163893Smarcel 3139178Smsmithatf_test_case nonexistent 3240555Smsmithnonexistent_head() { 3340555Smsmith atf_set "descr" "Check ifconfig(8) with " \ 3439178Smsmith "a nonexistent interface (PR bin/43141)" 35329140Skevans} 36329140Skevans 37329140Skevansnonexistent_body() { 3841107Sjkh 3940877Smsmith atf_check -s not-exit:0 -e ignore \ 40329140Skevans ifconfig nonexistent0 1.2.3.4/24 41329175Skevans} 4283616Ssobomax 4383616Ssobomaxatf_init_test_cases() { 44227726Smiwi atf_add_test_case nonexistent 45329140Skevans} 4638465Smsmith