summaryrefslogtreecommitdiff
path: root/atf-c++/tests.cpp
diff options
context:
space:
mode:
authorJulio Merino <jmmv@FreeBSD.org>2013-11-15 21:28:06 +0000
committerJulio Merino <jmmv@FreeBSD.org>2013-11-15 21:28:06 +0000
commitb2b6e97c465e6ea7f9e9e631898d5ec26c65daa1 (patch)
treee48e3dcbeca816c29ca712eac6c8f5b0e8bc07f0 /atf-c++/tests.cpp
parentf1e38e2131a6c87bafd2199650db07955c0386e0 (diff)
Notes
Diffstat (limited to 'atf-c++/tests.cpp')
-rw-r--r--atf-c++/tests.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/atf-c++/tests.cpp b/atf-c++/tests.cpp
index cdc0dfbad4f3..2c351fcb3dbb 100644
--- a/atf-c++/tests.cpp
+++ b/atf-c++/tests.cpp
@@ -55,9 +55,11 @@ extern "C" {
#include "atf-c/utils.h"
}
+#include "noncopyable.hpp"
#include "tests.hpp"
#include "detail/application.hpp"
+#include "detail/auto_array.hpp"
#include "detail/env.hpp"
#include "detail/exceptions.hpp"
#include "detail/fs.hpp"
@@ -127,7 +129,7 @@ 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::utils::noncopyable {
+struct impl::tc_impl : atf::noncopyable {
std::string m_ident;
atf_tc_t m_tc;
bool m_has_cleanup;
@@ -190,8 +192,7 @@ impl::tc::init(const vars_map& config)
{
atf_error_t err;
- utils::auto_array< const char * > array(
- new const char*[(config.size() * 2) + 1]);
+ auto_array< const char * > array(new const char*[(config.size() * 2) + 1]);
const char **ptr = array.get();
for (vars_map::const_iterator iter = config.begin();
iter != config.end(); iter++) {