diff options
author | Julio Merino <jmmv@FreeBSD.org> | 2013-11-15 21:28:06 +0000 |
---|---|---|
committer | Julio Merino <jmmv@FreeBSD.org> | 2013-11-15 21:28:06 +0000 |
commit | b2b6e97c465e6ea7f9e9e631898d5ec26c65daa1 (patch) | |
tree | e48e3dcbeca816c29ca712eac6c8f5b0e8bc07f0 /test-programs/cpp_helpers.cpp | |
parent | f1e38e2131a6c87bafd2199650db07955c0386e0 (diff) |
Notes
Diffstat (limited to 'test-programs/cpp_helpers.cpp')
-rw-r--r-- | test-programs/cpp_helpers.cpp | 26 |
1 files changed, 1 insertions, 25 deletions
diff --git a/test-programs/cpp_helpers.cpp b/test-programs/cpp_helpers.cpp index 4487aefb66439..d8a495e7c67e3 100644 --- a/test-programs/cpp_helpers.cpp +++ b/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); |