diff options
author | jmmv <jmmv@FreeBSD.org> | 2013-12-29 02:57:10 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2013-12-29 02:57:10 +0000 |
commit | 2cc168fb9fc9be682ff4c984b6306ddfe22c033d (patch) | |
tree | 65f81fcb32677687d7156f496d0c2c2b05ab505c /contrib/atf/test-programs/cpp_helpers.cpp | |
parent | 17b80845b0ba13495186831d3505af8c20eeb6ac (diff) | |
download | FreeBSD-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/cpp_helpers.cpp')
-rw-r--r-- | contrib/atf/test-programs/cpp_helpers.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/contrib/atf/test-programs/cpp_helpers.cpp b/contrib/atf/test-programs/cpp_helpers.cpp index 4487aef..d8a495e 100644 --- a/contrib/atf/test-programs/cpp_helpers.cpp +++ b/contrib/atf/test-programs/cpp_helpers.cpp @@ -36,7 +36,7 @@ extern "C" { #include <fstream> #include <iostream> -#include "atf-c++/macros.hpp" +#include <atf-c++.hpp> #include "atf-c++/detail/fs.hpp" @@ -225,27 +225,6 @@ ATF_TEST_CASE_BODY(expect_timeout_but_pass) } // ------------------------------------------------------------------------ -// Helper tests for "t_fork". -// ------------------------------------------------------------------------ - -ATF_TEST_CASE(fork_stop); -ATF_TEST_CASE_HEAD(fork_stop) -{ - set_md_var("descr", "Helper test case for the t_fork test program"); -} -ATF_TEST_CASE_BODY(fork_stop) -{ - std::ofstream os(get_config_var("pidfile").c_str()); - os << ::getpid() << "\n"; - os.close(); - std::cout << "Wrote pid file\n"; - std::cout << "Waiting for done file\n"; - while (::access(get_config_var("donefile").c_str(), F_OK) != 0) - ::usleep(10000); - std::cout << "Exiting\n"; -} - -// ------------------------------------------------------------------------ // Helper tests for "t_meta_data". // ------------------------------------------------------------------------ @@ -363,9 +342,6 @@ ATF_INIT_TEST_CASES(tcs) ATF_ADD_TEST_CASE(tcs, expect_timeout_and_hang); ATF_ADD_TEST_CASE(tcs, expect_timeout_but_pass); - // Add helper tests for t_fork. - ATF_ADD_TEST_CASE(tcs, fork_stop); - // Add helper tests for t_meta_data. ATF_ADD_TEST_CASE(tcs, metadata_no_descr); ATF_ADD_TEST_CASE(tcs, metadata_no_head); |