summaryrefslogtreecommitdiffstats
path: root/contrib/atf/atf-c++/tests.cpp
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2014-02-14 19:33:16 +0000
committerjmmv <jmmv@FreeBSD.org>2014-02-14 19:33:16 +0000
commit3000aef4b44bdeb9b83e0df3facbc6a75f8da412 (patch)
tree12192b0e3ae6cc3f8047467370fbd632a6788123 /contrib/atf/atf-c++/tests.cpp
parente21b440a4ce43fd31d59cd278801c727e21d3f2b (diff)
parent14f39fed9fe557bdd640e02d9abbe2e695400d9e (diff)
downloadFreeBSD-src-3000aef4b44bdeb9b83e0df3facbc6a75f8da412.zip
FreeBSD-src-3000aef4b44bdeb9b83e0df3facbc6a75f8da412.tar.gz
MFV: Import atf-0.20.
Diffstat (limited to 'contrib/atf/atf-c++/tests.cpp')
-rw-r--r--contrib/atf/atf-c++/tests.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/contrib/atf/atf-c++/tests.cpp b/contrib/atf/atf-c++/tests.cpp
index 2c351fc..801ed7c 100644
--- a/contrib/atf/atf-c++/tests.cpp
+++ b/contrib/atf/atf-c++/tests.cpp
@@ -55,7 +55,6 @@ extern "C" {
#include "atf-c/utils.h"
}
-#include "noncopyable.hpp"
#include "tests.hpp"
#include "detail/application.hpp"
@@ -63,7 +62,6 @@ extern "C" {
#include "detail/env.hpp"
#include "detail/exceptions.hpp"
#include "detail/fs.hpp"
-#include "detail/parser.hpp"
#include "detail/sanity.hpp"
#include "detail/text.hpp"
@@ -79,12 +77,7 @@ detail::atf_tp_writer::atf_tp_writer(std::ostream& os) :
m_os(os),
m_is_first(true)
{
- atf::parser::headers_map hm;
- atf::parser::attrs_map ct_attrs;
- ct_attrs["version"] = "1";
- hm["Content-Type"] = atf::parser::header_entry("Content-Type",
- "application/X-atf-tp", ct_attrs);
- atf::parser::write_headers(hm, m_os);
+ m_os << "Content-Type: application/X-atf-tp; version=\"1\"\n\n";
}
void
@@ -129,7 +122,13 @@ detail::match(const std::string& regexp, const std::string& str)
static std::map< atf_tc_t*, impl::tc* > wraps;
static std::map< const atf_tc_t*, const impl::tc* > cwraps;
-struct impl::tc_impl : atf::noncopyable {
+struct impl::tc_impl {
+private:
+ // Non-copyable.
+ tc_impl(const tc_impl&);
+ tc_impl& operator=(const tc_impl&);
+
+public:
std::string m_ident;
atf_tc_t m_tc;
bool m_has_cleanup;
@@ -435,7 +434,7 @@ const char* tp::m_description =
"This is an independent atf test program.";
tp::tp(void (*add_tcs)(tc_vector&)) :
- app(m_description, "atf-test-program(1)", "atf(7)", false),
+ app(m_description, "atf-test-program(1)"),
m_lflag(false),
m_resfile("/dev/stdout"),
m_srcdir("."),
OpenPOWER on IntegriCloud