t_exit.sh revision 1.1
11.1Sjmmv# $NetBSD: t_exit.sh,v 1.1 2010/07/16 15:42:53 jmmv Exp $
21.1Sjmmv#
31.1Sjmmv# Copyright (c) 2008 The NetBSD Foundation, Inc.
41.1Sjmmv# All rights reserved.
51.1Sjmmv#
61.1Sjmmv# Redistribution and use in source and binary forms, with or without
71.1Sjmmv# modification, are permitted provided that the following conditions
81.1Sjmmv# are met:
91.1Sjmmv# 1. Redistributions of source code must retain the above copyright
101.1Sjmmv#    notice, this list of conditions and the following disclaimer.
111.1Sjmmv# 2. Redistributions in binary form must reproduce the above copyright
121.1Sjmmv#    notice, this list of conditions and the following disclaimer in the
131.1Sjmmv#    documentation and/or other materials provided with the distribution.
141.1Sjmmv#
151.1Sjmmv# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
161.1Sjmmv# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
171.1Sjmmv# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
181.1Sjmmv# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
191.1Sjmmv# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
201.1Sjmmv# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
211.1Sjmmv# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
221.1Sjmmv# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
231.1Sjmmv# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
241.1Sjmmv# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
251.1Sjmmv# POSSIBILITY OF SUCH DAMAGE.
261.1Sjmmv#
271.1Sjmmv
281.1Sjmmvatf_test_case main_thread
291.1Sjmmvmain_thread_head()
301.1Sjmmv{
311.1Sjmmv	atf_set "descr" "Checks calling pthread_exit() in the main thread"
321.1Sjmmv}
331.1Sjmmvmain_thread_body()
341.1Sjmmv{
351.1Sjmmv	atf_check -o ignore "$(atf_get_srcdir)/h_exit"
361.1Sjmmv}
371.1Sjmmv
381.1Sjmmvatf_init_test_cases()
391.1Sjmmv{
401.1Sjmmv	atf_add_test_case main_thread
411.1Sjmmv}
42