t_nonexistent.sh revision 276478
10SN/A# $NetBSD: t_nonexistent.sh,v 1.4 2012/03/18 09:46:50 jruoho Exp $ 24475SN/A# 30SN/A# Copyright (c) 2011 The NetBSD Foundation, Inc. 40SN/A# All rights reserved. 50SN/A# 60SN/A# This code is derived from software contributed to The NetBSD Foundation 72362SN/A# by Jukka Ruohonen. 80SN/A# 92362SN/A# Redistribution and use in source and binary forms, with or without 100SN/A# modification, are permitted provided that the following conditions 110SN/A# are met: 120SN/A# 1. Redistributions of source code must retain the above copyright 130SN/A# notice, this list of conditions and the following disclaimer. 140SN/A# 2. Redistributions in binary form must reproduce the above copyright 150SN/A# notice, this list of conditions and the following disclaimer in the 160SN/A# documentation and/or other materials provided with the distribution. 170SN/A# 180SN/A# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS 190SN/A# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED 200SN/A# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR 212362SN/A# PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 222362SN/A# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 232362SN/A# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 240SN/A# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 250SN/A# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 260SN/A# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 270SN/A# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 2816294Srobm# POSSIBILITY OF SUCH DAMAGE. 290SN/A# 300SN/A 310SN/Aatf_test_case nonexistent 320SN/Anonexistent_head() { 330SN/A atf_set "descr" "Check ifconfig(8) with " \ 340SN/A "a nonexistent interface (PR bin/43141)" 350SN/A} 360SN/A 370SN/Anonexistent_body() { 380SN/A 390SN/A atf_check -s not-exit:0 -e ignore \ 400SN/A ifconfig nonexistent0 1.2.3.4/24 410SN/A} 420SN/A 430SN/Aatf_init_test_cases() { 440SN/A atf_add_test_case nonexistent 450SN/A} 460SN/A