xref: /freebsd/contrib/netbsd-tests/lib/libc/ssp/t_ssp.sh (revision 97e4ab0905ced74c849a0310a668b398b4e64d9a)
157718be8SEnji Cooper# $NetBSD: t_ssp.sh,v 1.7 2014/04/06 19:28:59 christos Exp $
257718be8SEnji Cooper#
357718be8SEnji Cooper# Copyright (c) 2008 The NetBSD Foundation, Inc.
457718be8SEnji Cooper# All rights reserved.
557718be8SEnji Cooper#
657718be8SEnji Cooper# Redistribution and use in source and binary forms, with or without
757718be8SEnji Cooper# modification, are permitted provided that the following conditions
857718be8SEnji Cooper# are met:
957718be8SEnji Cooper# 1. Redistributions of source code must retain the above copyright
1057718be8SEnji Cooper#    notice, this list of conditions and the following disclaimer.
1157718be8SEnji Cooper# 2. Redistributions in binary form must reproduce the above copyright
1257718be8SEnji Cooper#    notice, this list of conditions and the following disclaimer in the
1357718be8SEnji Cooper#    documentation and/or other materials provided with the distribution.
1457718be8SEnji Cooper#
1557718be8SEnji Cooper# THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
1657718be8SEnji Cooper# ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
1757718be8SEnji Cooper# TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
1857718be8SEnji Cooper# PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
1957718be8SEnji Cooper# BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
2057718be8SEnji Cooper# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
2157718be8SEnji Cooper# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
2257718be8SEnji Cooper# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
2357718be8SEnji Cooper# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
2457718be8SEnji Cooper# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
2557718be8SEnji Cooper# POSSIBILITY OF SUCH DAMAGE.
2657718be8SEnji Cooper#
2757718be8SEnji Cooper
2857718be8SEnji Cooperh_pass()
2957718be8SEnji Cooper{
3057718be8SEnji Cooper	echo "Executing command [ $2$1 ]"
3157718be8SEnji Cooper	eval $2 atf_check -s exit:0 -o ignore -e ignore $1
3257718be8SEnji Cooper}
3357718be8SEnji Cooper
3457718be8SEnji Cooperh_fail()
3557718be8SEnji Cooper{
3657718be8SEnji Cooper	echo "Executing command [ $2$1 ]"
37f001698bSEnji Cooper	# Begin FreeBSD
38f001698bSEnji Cooper	if true; then
39f001698bSEnji Cooper		eval $2 atf_check -s signal -o ignore -e ignore $1
40f001698bSEnji Cooper	else
41f001698bSEnji Cooper	# End FreeBSD
4257718be8SEnji Cooper	eval $2 atf_check -s signal:6 -o ignore -e ignore $1
43f001698bSEnji Cooper	# Begin FreeBSD
44f001698bSEnji Cooper	fi
45f001698bSEnji Cooper	# End FreeBSD
4657718be8SEnji Cooper}
4757718be8SEnji Cooper
4857718be8SEnji Cooperatf_test_case sprintf
4957718be8SEnji Coopersprintf_head()
5057718be8SEnji Cooper{
5157718be8SEnji Cooper	atf_set "descr" "Checks sprintf(3)"
5257718be8SEnji Cooper}
5357718be8SEnji Coopersprintf_body()
5457718be8SEnji Cooper{
5557718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_sprintf"
5657718be8SEnji Cooper
5757718be8SEnji Cooper	h_pass "$prog ok"
58f001698bSEnji Cooper	# Begin FreeBSD
59f001698bSEnji Cooper	if true; then
60f001698bSEnji Cooper		h_fail "$prog 0123456789ab"
61f001698bSEnji Cooper	else
62f001698bSEnji Cooper	# End FreeBSD
6357718be8SEnji Cooper	h_fail "$prog 0123456789"
64f001698bSEnji Cooper	# Begin FreeBSD
65f001698bSEnji Cooper	fi
66f001698bSEnji Cooper	# End FreeBSD
6757718be8SEnji Cooper}
6857718be8SEnji Cooper
6957718be8SEnji Cooperatf_test_case vsprintf
7057718be8SEnji Coopervsprintf_head()
7157718be8SEnji Cooper{
7257718be8SEnji Cooper	atf_set "descr" "Checks vsprintf(3)"
7357718be8SEnji Cooper}
7457718be8SEnji Coopervsprintf_body()
7557718be8SEnji Cooper{
7657718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_vsprintf"
7757718be8SEnji Cooper
7857718be8SEnji Cooper	h_pass "$prog ok"
79f001698bSEnji Cooper	# Begin FreeBSD
80f001698bSEnji Cooper	if true; then
81f001698bSEnji Cooper		h_fail "$prog 0123456789ab"
82f001698bSEnji Cooper	else
83f001698bSEnji Cooper	# End FreeBSD
8457718be8SEnji Cooper	h_fail "$prog 0123456789"
85f001698bSEnji Cooper	# Begin FreeBSD
86f001698bSEnji Cooper	fi
87f001698bSEnji Cooper	# End FreeBSD
8857718be8SEnji Cooper}
8957718be8SEnji Cooper
9057718be8SEnji Cooperatf_test_case snprintf
9157718be8SEnji Coopersnprintf_head()
9257718be8SEnji Cooper{
9357718be8SEnji Cooper	atf_set "descr" "Checks snprintf(3)"
9457718be8SEnji Cooper}
9557718be8SEnji Coopersnprintf_body()
9657718be8SEnji Cooper{
9757718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_snprintf"
9857718be8SEnji Cooper
9957718be8SEnji Cooper	h_pass "$prog 10"
100f001698bSEnji Cooper	# Begin FreeBSD
101f001698bSEnji Cooper	if true; then
102f001698bSEnji Cooper		h_fail "$prog 13"
103f001698bSEnji Cooper	else
104f001698bSEnji Cooper	# End FreeBSD
10557718be8SEnji Cooper	h_fail "$prog 11"
106f001698bSEnji Cooper	# Begin FreeBSD
107f001698bSEnji Cooper	fi
108f001698bSEnji Cooper	# End FreeBSD
10957718be8SEnji Cooper}
11057718be8SEnji Cooper
11157718be8SEnji Cooperatf_test_case vsnprintf
11257718be8SEnji Coopervsnprintf_head()
11357718be8SEnji Cooper{
11457718be8SEnji Cooper	atf_set "descr" "Checks vsnprintf(3)"
11557718be8SEnji Cooper}
11657718be8SEnji Coopervsnprintf_body()
11757718be8SEnji Cooper{
11857718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_vsnprintf"
11957718be8SEnji Cooper
12057718be8SEnji Cooper	h_pass "$prog 10"
121f001698bSEnji Cooper	# Begin FreeBSD
122f001698bSEnji Cooper	if true; then
123f001698bSEnji Cooper		h_fail "$prog 13"
124f001698bSEnji Cooper	else
125f001698bSEnji Cooper	# End FreeBSD
12657718be8SEnji Cooper	h_fail "$prog 11"
127f001698bSEnji Cooper	# Begin FreeBSD
128f001698bSEnji Cooper	fi
129f001698bSEnji Cooper	# End FreeBSD
13057718be8SEnji Cooper}
13157718be8SEnji Cooper
13257718be8SEnji Cooperatf_test_case gets
13357718be8SEnji Coopergets_head()
13457718be8SEnji Cooper{
13557718be8SEnji Cooper	atf_set "descr" "Checks gets(3)"
13657718be8SEnji Cooper}
13757718be8SEnji Coopergets_body()
13857718be8SEnji Cooper{
13957718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_gets"
14057718be8SEnji Cooper
14157718be8SEnji Cooper	h_pass "$prog" "echo ok |"
142f001698bSEnji Cooper	# Begin FreeBSD
143f001698bSEnji Cooper	if true; then
144f001698bSEnji Cooper		h_fail "$prog" "echo 0123456789ab |"
145f001698bSEnji Cooper	else
146f001698bSEnji Cooper	# End FreeBSD
14757718be8SEnji Cooper	h_fail "$prog" "echo 0123456789 |"
148f001698bSEnji Cooper	# Begin FreeBSD
149f001698bSEnji Cooper	fi
150f001698bSEnji Cooper	# End FreeBSD
15157718be8SEnji Cooper}
15257718be8SEnji Cooper
15357718be8SEnji Cooperatf_test_case fgets
15457718be8SEnji Cooperfgets_head()
15557718be8SEnji Cooper{
15657718be8SEnji Cooper	atf_set "descr" "Checks fgets(3)"
15757718be8SEnji Cooper}
15857718be8SEnji Cooperfgets_body()
15957718be8SEnji Cooper{
16057718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_fgets"
16157718be8SEnji Cooper
16257718be8SEnji Cooper	h_pass "$prog 10" "echo ok |"
163f001698bSEnji Cooper	# Begin FreeBSD
164f001698bSEnji Cooper	if true; then
165f001698bSEnji Cooper		h_fail "$prog 13" "echo 0123456789abc |"
166f001698bSEnji Cooper	else
167f001698bSEnji Cooper	# End FreeBSD
16857718be8SEnji Cooper	h_fail "$prog 11" "echo busted |"
169f001698bSEnji Cooper	# Begin FreeBSD
170f001698bSEnji Cooper	fi
171f001698bSEnji Cooper	# End FreeBSD
17257718be8SEnji Cooper}
17357718be8SEnji Cooper
17457718be8SEnji Cooperatf_test_case memcpy
17557718be8SEnji Coopermemcpy_head()
17657718be8SEnji Cooper{
17757718be8SEnji Cooper	atf_set "descr" "Checks memcpy(3)"
17857718be8SEnji Cooper}
17957718be8SEnji Coopermemcpy_body()
18057718be8SEnji Cooper{
18157718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_memcpy"
18257718be8SEnji Cooper
18357718be8SEnji Cooper	h_pass "$prog 10"
184f001698bSEnji Cooper	# Begin FreeBSD
185f001698bSEnji Cooper	if true; then
186f001698bSEnji Cooper		h_fail "$prog 13"
187f001698bSEnji Cooper	else
188f001698bSEnji Cooper	# End FreeBSD
18957718be8SEnji Cooper	h_fail "$prog 11"
190f001698bSEnji Cooper	# Begin FreeBSD
191f001698bSEnji Cooper	fi
192f001698bSEnji Cooper	# End FreeBSD
19357718be8SEnji Cooper}
19457718be8SEnji Cooper
19557718be8SEnji Cooperatf_test_case memmove
19657718be8SEnji Coopermemmove_head()
19757718be8SEnji Cooper{
19857718be8SEnji Cooper	atf_set "descr" "Checks memmove(3)"
19957718be8SEnji Cooper}
20057718be8SEnji Coopermemmove_body()
20157718be8SEnji Cooper{
20257718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_memmove"
20357718be8SEnji Cooper
20457718be8SEnji Cooper	h_pass "$prog 10"
205f001698bSEnji Cooper	# Begin FreeBSD
206f001698bSEnji Cooper	if true; then
207f001698bSEnji Cooper		h_fail "$prog 13"
208f001698bSEnji Cooper	else
209f001698bSEnji Cooper	# End FreeBSD
21057718be8SEnji Cooper	h_fail "$prog 11"
211f001698bSEnji Cooper	# Begin FreeBSD
212f001698bSEnji Cooper	fi
213f001698bSEnji Cooper	# End FreeBSD
21457718be8SEnji Cooper}
21557718be8SEnji Cooper
21657718be8SEnji Cooperatf_test_case memset
21757718be8SEnji Coopermemset_head()
21857718be8SEnji Cooper{
21957718be8SEnji Cooper	atf_set "descr" "Checks memset(3)"
22057718be8SEnji Cooper}
22157718be8SEnji Coopermemset_body()
22257718be8SEnji Cooper{
22357718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_memset"
22457718be8SEnji Cooper
22557718be8SEnji Cooper	h_pass "$prog 10"
226f001698bSEnji Cooper	# Begin FreeBSD
227f001698bSEnji Cooper	if true; then
228f001698bSEnji Cooper		h_fail "$prog 13"
229f001698bSEnji Cooper	else
230f001698bSEnji Cooper	# End FreeBSD
23157718be8SEnji Cooper	h_fail "$prog 11"
232f001698bSEnji Cooper	# Begin FreeBSD
233f001698bSEnji Cooper	fi
234f001698bSEnji Cooper	# End FreeBSD
23557718be8SEnji Cooper}
23657718be8SEnji Cooper
23757718be8SEnji Cooperatf_test_case strcpy
23857718be8SEnji Cooperstrcpy_head()
23957718be8SEnji Cooper{
24057718be8SEnji Cooper	atf_set "descr" "Checks strcpy(3)"
24157718be8SEnji Cooper}
24257718be8SEnji Cooperstrcpy_body()
24357718be8SEnji Cooper{
24457718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_strcpy"
24557718be8SEnji Cooper
24657718be8SEnji Cooper	h_pass "$prog 0123456"
247f001698bSEnji Cooper	# Begin FreeBSD
248f001698bSEnji Cooper	if true; then
249f001698bSEnji Cooper		h_fail "$prog 0123456789ab"
250f001698bSEnji Cooper	else
251f001698bSEnji Cooper	# End FreeBSD
25257718be8SEnji Cooper	h_fail "$prog 0123456789"
253f001698bSEnji Cooper	# Begin FreeBSD
254f001698bSEnji Cooper	fi
255f001698bSEnji Cooper	# End FreeBSD
25657718be8SEnji Cooper}
25757718be8SEnji Cooper
25857718be8SEnji Cooperatf_test_case stpcpy
25957718be8SEnji Cooperstpcpy_head()
26057718be8SEnji Cooper{
26157718be8SEnji Cooper	atf_set "descr" "Checks stpcpy(3)"
26257718be8SEnji Cooper}
26357718be8SEnji Cooperstpcpy_body()
26457718be8SEnji Cooper{
26557718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_stpcpy"
26657718be8SEnji Cooper
26757718be8SEnji Cooper	h_pass "$prog 0123456"
268f001698bSEnji Cooper	# Begin FreeBSD
269f001698bSEnji Cooper	if true; then
270f001698bSEnji Cooper		h_fail "$prog 0123456789ab"
271f001698bSEnji Cooper	else
272f001698bSEnji Cooper	# End FreeBSD
27357718be8SEnji Cooper	h_fail "$prog 0123456789"
274f001698bSEnji Cooper	# Begin FreeBSD
275f001698bSEnji Cooper	fi
276f001698bSEnji Cooper	# End FreeBSD
27757718be8SEnji Cooper}
27857718be8SEnji Cooper
27957718be8SEnji Cooperatf_test_case strcat
28057718be8SEnji Cooperstrcat_head()
28157718be8SEnji Cooper{
28257718be8SEnji Cooper	atf_set "descr" "Checks strcat(3)"
28357718be8SEnji Cooper}
28457718be8SEnji Cooperstrcat_body()
28557718be8SEnji Cooper{
28657718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_strcat"
28757718be8SEnji Cooper
28857718be8SEnji Cooper	h_pass "$prog 0123456"
28957718be8SEnji Cooper	h_fail "$prog 0123456789ABCDEF"
29057718be8SEnji Cooper}
29157718be8SEnji Cooper
29257718be8SEnji Cooperatf_test_case strncpy
29357718be8SEnji Cooperstrncpy_head()
29457718be8SEnji Cooper{
29557718be8SEnji Cooper	atf_set "descr" "Checks strncpy(3)"
29657718be8SEnji Cooper}
29757718be8SEnji Cooperstrncpy_body()
29857718be8SEnji Cooper{
29957718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_strncpy"
30057718be8SEnji Cooper
30157718be8SEnji Cooper	h_pass "$prog 10"
302f001698bSEnji Cooper	# Begin FreeBSD
303f001698bSEnji Cooper	if true; then
304f001698bSEnji Cooper		h_fail "$prog 13"
305f001698bSEnji Cooper	else
306f001698bSEnji Cooper	# End FreeBSD
30757718be8SEnji Cooper	h_fail "$prog 11"
308f001698bSEnji Cooper	# Begin FreeBSD
309f001698bSEnji Cooper	fi
310f001698bSEnji Cooper	# End FreeBSD
31157718be8SEnji Cooper}
31257718be8SEnji Cooper
31357718be8SEnji Cooperatf_test_case stpncpy
31457718be8SEnji Cooperstpncpy_head()
31557718be8SEnji Cooper{
31657718be8SEnji Cooper	atf_set "descr" "Checks stpncpy(3)"
31757718be8SEnji Cooper}
31857718be8SEnji Cooperstpncpy_body()
31957718be8SEnji Cooper{
32057718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_stpncpy"
32157718be8SEnji Cooper
32257718be8SEnji Cooper	h_pass "$prog 10"
323f001698bSEnji Cooper	# Begin FreeBSD
324f001698bSEnji Cooper	if true; then
325f001698bSEnji Cooper		h_fail "$prog 13"
326f001698bSEnji Cooper	else
327f001698bSEnji Cooper	# End FreeBSD
32857718be8SEnji Cooper	h_fail "$prog 11"
329f001698bSEnji Cooper	# Begin FreeBSD
330f001698bSEnji Cooper	fi
331f001698bSEnji Cooper	# End FreeBSD
33257718be8SEnji Cooper}
33357718be8SEnji Cooper
33457718be8SEnji Cooperatf_test_case strncat
33557718be8SEnji Cooperstrncat_head()
33657718be8SEnji Cooper{
33757718be8SEnji Cooper	atf_set "descr" "Checks strncat(3)"
33857718be8SEnji Cooper}
33957718be8SEnji Cooperstrncat_body()
34057718be8SEnji Cooper{
34157718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_strncat"
34257718be8SEnji Cooper
343f001698bSEnji Cooper	# Begin FreeBSD
34457718be8SEnji Cooper	h_pass "$prog 8"
345f001698bSEnji Cooper	if true; then
346f001698bSEnji Cooper		h_fail "$prog 11"
347f001698bSEnji Cooper	else
348f001698bSEnji Cooper	# End FreeBSD
34957718be8SEnji Cooper	h_fail "$prog 9"
350f001698bSEnji Cooper	# Begin FreeBSD
351f001698bSEnji Cooper	fi
352f001698bSEnji Cooper	# End FreeBSD
35357718be8SEnji Cooper}
35457718be8SEnji Cooper
35557718be8SEnji Cooperatf_test_case raw
35657718be8SEnji Cooperraw_head()
35757718be8SEnji Cooper{
35857718be8SEnji Cooper	atf_set "descr" "Checks raw array overflow"
35957718be8SEnji Cooper}
36057718be8SEnji Cooperraw_body()
36157718be8SEnji Cooper{
36257718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_raw"
363*97e4ab09SEnji Cooper	# Begin FreeBSD
364*97e4ab09SEnji Cooper	[ -x $prog ] || atf_skip "$prog is missing; skipping testcase"
365*97e4ab09SEnji Cooper	# End FreeBSD
36657718be8SEnji Cooper
36757718be8SEnji Cooper	h_pass "$prog 9"
368f001698bSEnji Cooper	# Begin FreeBSD
369f001698bSEnji Cooper	if true; then
370f001698bSEnji Cooper		h_fail "$prog 12"
371f001698bSEnji Cooper	else
372f001698bSEnji Cooper	# End FreeBSD
37357718be8SEnji Cooper	h_fail "$prog 10"
374f001698bSEnji Cooper	# Begin FreeBSD
375f001698bSEnji Cooper	fi
376f001698bSEnji Cooper	# End FreeBSD
37757718be8SEnji Cooper}
37857718be8SEnji Cooper
37957718be8SEnji Cooperatf_test_case read
38057718be8SEnji Cooperread_head()
38157718be8SEnji Cooper{
38257718be8SEnji Cooper	atf_set "descr" "Checks read(2)"
38357718be8SEnji Cooper}
38457718be8SEnji Cooperread_body()
38557718be8SEnji Cooper{
38657718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_read"
38757718be8SEnji Cooper
38857718be8SEnji Cooper	h_pass "$prog 1024" "echo foo |"
389f001698bSEnji Cooper	# Begin FreeBSD
390f001698bSEnji Cooper	if true; then
391f001698bSEnji Cooper		h_fail "$prog 1027" "echo bar |"
392f001698bSEnji Cooper	else
393f001698bSEnji Cooper	# End FreeBSD
39457718be8SEnji Cooper	h_fail "$prog 1025" "echo bar |"
395f001698bSEnji Cooper	# Begin FreeBSD
396f001698bSEnji Cooper	fi
397f001698bSEnji Cooper	# End FreeBSD
39857718be8SEnji Cooper}
39957718be8SEnji Cooper
40057718be8SEnji Cooperatf_test_case readlink
40157718be8SEnji Cooperreadlink_head()
40257718be8SEnji Cooper{
40357718be8SEnji Cooper	atf_set "descr" "Checks readlink(2)"
40457718be8SEnji Cooper}
40557718be8SEnji Cooperreadlink_body()
40657718be8SEnji Cooper{
40757718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_readlink"
40857718be8SEnji Cooper
409f001698bSEnji Cooper	# Begin FreeBSD
410f001698bSEnji Cooper	if true; then
411f001698bSEnji Cooper		h_pass "$prog 512"
412f001698bSEnji Cooper		h_fail "$prog 523"
413f001698bSEnji Cooper	else
414f001698bSEnji Cooper	# End FreeBSD
41557718be8SEnji Cooper	h_pass "$prog 1024"
41657718be8SEnji Cooper	h_fail "$prog 1025"
417f001698bSEnji Cooper	# Begin FreeBSD
418f001698bSEnji Cooper	fi
419f001698bSEnji Cooper	# End FreeBSD
42057718be8SEnji Cooper}
42157718be8SEnji Cooper
42257718be8SEnji Cooperatf_test_case getcwd
42357718be8SEnji Coopergetcwd_head()
42457718be8SEnji Cooper{
42557718be8SEnji Cooper	atf_set "descr" "Checks getcwd(3)"
42657718be8SEnji Cooper}
42757718be8SEnji Coopergetcwd_body()
42857718be8SEnji Cooper{
42957718be8SEnji Cooper	prog="$(atf_get_srcdir)/h_getcwd"
43057718be8SEnji Cooper
43157718be8SEnji Cooper	h_pass "$prog 1024"
432f001698bSEnji Cooper	# Begin FreeBSD
433f001698bSEnji Cooper	if false; then
434f001698bSEnji Cooper	# End FreeBSD
43557718be8SEnji Cooper	h_fail "$prog 1025"
436f001698bSEnji Cooper	# Begin FreeBSD
437f001698bSEnji Cooper	fi
438f001698bSEnji Cooper	# End FreeBSD
43957718be8SEnji Cooper}
44057718be8SEnji Cooper
44157718be8SEnji Cooperatf_init_test_cases()
44257718be8SEnji Cooper{
44357718be8SEnji Cooper	atf_add_test_case sprintf
44457718be8SEnji Cooper	atf_add_test_case vsprintf
44557718be8SEnji Cooper	atf_add_test_case snprintf
44657718be8SEnji Cooper	atf_add_test_case vsnprintf
44757718be8SEnji Cooper	atf_add_test_case gets
44857718be8SEnji Cooper	atf_add_test_case fgets
44957718be8SEnji Cooper	atf_add_test_case memcpy
45057718be8SEnji Cooper	atf_add_test_case memmove
45157718be8SEnji Cooper	atf_add_test_case memset
45257718be8SEnji Cooper	atf_add_test_case stpcpy
45357718be8SEnji Cooper	atf_add_test_case stpncpy
45457718be8SEnji Cooper	atf_add_test_case strcat
45557718be8SEnji Cooper	atf_add_test_case strcpy
45657718be8SEnji Cooper	atf_add_test_case strncat
45757718be8SEnji Cooper	atf_add_test_case strncpy
45857718be8SEnji Cooper	atf_add_test_case raw
45957718be8SEnji Cooper	atf_add_test_case read
46057718be8SEnji Cooper	atf_add_test_case readlink
46157718be8SEnji Cooper	atf_add_test_case getcwd
46257718be8SEnji Cooper}
463