diff options
author | jmmv <jmmv@FreeBSD.org> | 2013-11-17 23:51:19 +0000 |
---|---|---|
committer | jmmv <jmmv@FreeBSD.org> | 2013-11-17 23:51:19 +0000 |
commit | 8c7e11817a76331c10afb89d609a304c49dd588b (patch) | |
tree | e69b0ffecc81ada4e0d39442aa0f39a4abc93806 /contrib/atf/atf-sh/atf-check.cpp | |
parent | a21ab9564f9972a893699a0178df90fd60e11b47 (diff) | |
parent | b849e3606cf0dc725ff02712cd92907131c0188c (diff) | |
download | FreeBSD-src-8c7e11817a76331c10afb89d609a304c49dd588b.zip FreeBSD-src-8c7e11817a76331c10afb89d609a304c49dd588b.tar.gz |
MFV: Import atf-0.18.
Approved by: rpaulo (mentor)
Diffstat (limited to 'contrib/atf/atf-sh/atf-check.cpp')
-rw-r--r-- | contrib/atf/atf-sh/atf-check.cpp | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/atf/atf-sh/atf-check.cpp b/contrib/atf/atf-sh/atf-check.cpp index 713da3f..66f6c4c 100644 --- a/contrib/atf/atf-sh/atf-check.cpp +++ b/contrib/atf/atf-sh/atf-check.cpp @@ -49,9 +49,9 @@ extern "C" { #include "atf-c++/check.hpp" #include "atf-c++/config.hpp" -#include "atf-c++/utils.hpp" #include "atf-c++/detail/application.hpp" +#include "atf-c++/detail/auto_array.hpp" #include "atf-c++/detail/exceptions.hpp" #include "atf-c++/detail/fs.hpp" #include "atf-c++/detail/process.hpp" @@ -116,7 +116,7 @@ public: std::ostream(NULL), m_fd(-1) { - atf::utils::auto_array< char > buf(new char[p.str().length() + 1]); + atf::auto_array< char > buf(new char[p.str().length() + 1]); std::strcpy(buf.get(), p.c_str()); m_fd = ::mkstemp(buf.get()); @@ -331,10 +331,13 @@ static std::auto_ptr< atf::check::check_result > execute(const char* const* argv) { + // TODO: This should go to stderr... but fixing it now may be hard as test + // cases out there might be relying on stderr being silent. std::cout << "Executing command [ "; for (int i = 0; argv[i] != NULL; ++i) std::cout << argv[i] << " "; std::cout << "]\n"; + std::cout.flush(); atf::process::argv_array argva(argv); return atf::check::exec(argva); |