summaryrefslogtreecommitdiffstats
path: root/contrib/atf/test-programs/c_helpers.c
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2013-12-29 02:57:10 +0000
committerjmmv <jmmv@FreeBSD.org>2013-12-29 02:57:10 +0000
commit2cc168fb9fc9be682ff4c984b6306ddfe22c033d (patch)
tree65f81fcb32677687d7156f496d0c2c2b05ab505c /contrib/atf/test-programs/c_helpers.c
parent17b80845b0ba13495186831d3505af8c20eeb6ac (diff)
downloadFreeBSD-src-2cc168fb9fc9be682ff4c984b6306ddfe22c033d.zip
FreeBSD-src-2cc168fb9fc9be682ff4c984b6306ddfe22c033d.tar.gz
Update atf to 0.18 and remove the code of the deprecated tools.
This is a MFC into stable/10 of: - r258286 Update notes for imports of atf. - r258289 MFV: Import atf-0.18. - r258290 Drop all ATF tools code. This is "make tinderbox" clean as run on ref10-amd64 with the default WITHOUT_TESTS option. A "make buildworld" with WITH_TESTS set now works as well.
Diffstat (limited to 'contrib/atf/test-programs/c_helpers.c')
-rw-r--r--contrib/atf/test-programs/c_helpers.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/contrib/atf/test-programs/c_helpers.c b/contrib/atf/test-programs/c_helpers.c
index 95cde6f..ac9bcc3 100644
--- a/contrib/atf/test-programs/c_helpers.c
+++ b/contrib/atf/test-programs/c_helpers.c
@@ -177,22 +177,6 @@ ATF_TC_CLEANUP(cleanup_sigterm, tc)
safe_remove(atf_tc_get_config_var(tc, "tmpfile"));
}
-ATF_TC_WITH_CLEANUP(cleanup_fork);
-ATF_TC_HEAD(cleanup_fork, tc)
-{
- atf_tc_set_md_var(tc, "descr", "Helper test case for the t_cleanup test "
- "program");
-}
-ATF_TC_BODY(cleanup_fork, tc)
-{
-}
-ATF_TC_CLEANUP(cleanup_fork, tc)
-{
- close(STDOUT_FILENO);
- close(STDERR_FILENO);
- close(3);
-}
-
/* ---------------------------------------------------------------------
* Helper tests for "t_config".
* --------------------------------------------------------------------- */
@@ -386,37 +370,6 @@ ATF_TC_BODY(expect_timeout_but_pass, tc)
}
/* ---------------------------------------------------------------------
- * Helper tests for "t_fork".
- * --------------------------------------------------------------------- */
-
-ATF_TC(fork_stop);
-ATF_TC_HEAD(fork_stop, tc)
-{
- atf_tc_set_md_var(tc, "descr", "Helper test case for the t_fork test "
- "program");
-}
-ATF_TC_BODY(fork_stop, tc)
-{
- FILE *f;
- const char *dfstr, *pfstr;
-
- dfstr = atf_tc_get_config_var(tc, "donefile");
- pfstr = atf_tc_get_config_var(tc, "pidfile");
-
- f = fopen(pfstr, "w");
- if (f == NULL)
- atf_tc_fail("Failed to create pidfile %s", pfstr);
- fprintf(f, "%d", (int)getpid());
- fclose(f);
- printf("Wrote pid file\n");
-
- printf("Waiting for done file\n");
- while (access(dfstr, F_OK) != 0)
- usleep(10000);
- printf("Exiting\n");
-}
-
-/* ---------------------------------------------------------------------
* Helper tests for "t_meta_data".
* --------------------------------------------------------------------- */
@@ -511,7 +464,6 @@ ATF_TP_ADD_TCS(tp)
ATF_TP_ADD_TC(tp, cleanup_skip);
ATF_TP_ADD_TC(tp, cleanup_curdir);
ATF_TP_ADD_TC(tp, cleanup_sigterm);
- ATF_TP_ADD_TC(tp, cleanup_fork);
/* Add helper tests for t_config. */
ATF_TP_ADD_TC(tp, config_unset);
@@ -538,9 +490,6 @@ ATF_TP_ADD_TCS(tp)
ATF_TP_ADD_TC(tp, expect_timeout_and_hang);
ATF_TP_ADD_TC(tp, expect_timeout_but_pass);
- /* Add helper tests for t_fork. */
- ATF_TP_ADD_TC(tp, fork_stop);
-
/* Add helper tests for t_meta_data. */
ATF_TP_ADD_TC(tp, metadata_no_descr);
ATF_TP_ADD_TC(tp, metadata_no_head);
OpenPOWER on IntegriCloud