diff options
author | ray <ray@FreeBSD.org> | 2013-12-05 00:57:53 +0000 |
---|---|---|
committer | ray <ray@FreeBSD.org> | 2013-12-05 00:57:53 +0000 |
commit | 1af064917e022f18acbf9fc2942cd40f1b26fbe5 (patch) | |
tree | ef10954b063bcd6939eabdcc7ecba95432634f70 /contrib/atf/test-programs/cpp_helpers.cpp | |
parent | 40d47a9dd8116c90080a010ab3483d8917bd0524 (diff) | |
parent | 6e411c7e1916ef76b0aa51ded38fa235d3313371 (diff) | |
download | FreeBSD-src-1af064917e022f18acbf9fc2942cd40f1b26fbe5.zip FreeBSD-src-1af064917e022f18acbf9fc2942cd40f1b26fbe5.tar.gz |
MFC @r258947.
Sponsored by: The FreeBSD Foundation
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); |