Lines Matching +full:test2 +full:. +full:good
1 /* Copyright (c) 2008 The NetBSD Foundation, Inc.
2 * All rights reserved.
7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright
11 * documentation and/or other materials provided with the distribution.
13 * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND
16 * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
24 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */
26 #include "atf-c/tc.h"
28 #include <stdbool.h>
29 #include <string.h>
31 #include <atf-c.h>
33 #include "atf-c/detail/test_helpers.h"
36 * Auxiliary test cases.
53 * Test cases for the "atf_tc_t" type.
71 RE(atf_tc_init(&tc, "test2", ATF_TC_HEAD_NAME(test_var), in ATF_TC_BODY()
73 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test2") == 0); in ATF_TC_BODY()
87 .m_ident = "test1", in ATF_TC_BODY()
88 .m_head = ATF_TC_HEAD_NAME(empty), in ATF_TC_BODY()
89 .m_body = ATF_TC_BODY_NAME(empty), in ATF_TC_BODY()
90 .m_cleanup = NULL, in ATF_TC_BODY()
93 .m_ident = "test2", in ATF_TC_BODY()
94 .m_head = ATF_TC_HEAD_NAME(test_var), in ATF_TC_BODY()
95 .m_body = ATF_TC_BODY_NAME(empty), in ATF_TC_BODY()
96 .m_cleanup = NULL, in ATF_TC_BODY()
105 ATF_REQUIRE(strcmp(atf_tc_get_ident(&tc), "test2") == 0); in ATF_TC_BODY()
160 * Test cases for the free functions.
163 /* TODO: Add test cases for atf_tc_run. This is going to be very tough,
164 * but good tests here could allow us to avoid much of the indirect
165 * testing done later on. */
168 * Main.
173 /* Add the test cases for the "atf_tcr_t" type. */ in ATF_TP_ADD_TCS()
179 /* Add the test cases for the free functions. */ in ATF_TP_ADD_TCS()