summaryrefslogtreecommitdiffstats
path: root/contrib/atf/atf-c++/check_test.cpp
diff options
context:
space:
mode:
authorjmmv <jmmv@FreeBSD.org>2014-11-01 11:17:54 +0000
committerjmmv <jmmv@FreeBSD.org>2014-11-01 11:17:54 +0000
commit120021745eb3a1c1b24fdc54769f808151deb621 (patch)
tree7e1f2a559f61d17aad44cfb95b6fefcaa593c4af /contrib/atf/atf-c++/check_test.cpp
parent595e4e5bc797fd4a63eb344ae9df352db666a94d (diff)
parent3b6cf63a5c1f2de80b3b7fdd30eab1717f5c9407 (diff)
downloadFreeBSD-src-120021745eb3a1c1b24fdc54769f808151deb621.zip
FreeBSD-src-120021745eb3a1c1b24fdc54769f808151deb621.tar.gz
MFV: Import atf-0.21.
Diffstat (limited to 'contrib/atf/atf-c++/check_test.cpp')
-rw-r--r--contrib/atf/atf-c++/check_test.cpp30
1 files changed, 8 insertions, 22 deletions
diff --git a/contrib/atf/atf-c++/check_test.cpp b/contrib/atf/atf-c++/check_test.cpp
index a92511c..7baf3fa 100644
--- a/contrib/atf/atf-c++/check_test.cpp
+++ b/contrib/atf/atf-c++/check_test.cpp
@@ -1,6 +1,3 @@
-//
-// Automated Testing Framework (atf)
-//
// Copyright (c) 2007 The NetBSD Foundation, Inc.
// All rights reserved.
//
@@ -25,7 +22,8 @@
// IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
// OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
// IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-//
+
+#include "atf-c++/check.hpp"
extern "C" {
#include <fcntl.h>
@@ -43,14 +41,11 @@ extern "C" {
#include <atf-c++.hpp>
-#include "check.hpp"
-#include "config.hpp"
-#include "utils.hpp"
-
-#include "detail/fs.hpp"
-#include "detail/process.hpp"
-#include "detail/test_helpers.hpp"
-#include "detail/text.hpp"
+#include "atf-c++/detail/fs.hpp"
+#include "atf-c++/detail/process.hpp"
+#include "atf-c++/detail/test_helpers.hpp"
+#include "atf-c++/detail/text.hpp"
+#include "atf-c++/utils.hpp"
// ------------------------------------------------------------------------
// Auxiliary functions.
@@ -374,7 +369,7 @@ ATF_TEST_CASE_HEAD(exec_unknown)
ATF_TEST_CASE_BODY(exec_unknown)
{
std::vector< std::string > argv;
- argv.push_back(atf::config::get("atf_workdir") + "/non-existent");
+ argv.push_back("/foo/bar/non-existent");
atf::process::argv_array argva(argv);
std::auto_ptr< atf::check::check_result > r = atf::check::exec(argva);
@@ -383,12 +378,6 @@ ATF_TEST_CASE_BODY(exec_unknown)
}
// ------------------------------------------------------------------------
-// Tests cases for the header file.
-// ------------------------------------------------------------------------
-
-HEADER_TC(include, "atf-c++/check.hpp");
-
-// ------------------------------------------------------------------------
// Main.
// ------------------------------------------------------------------------
@@ -402,7 +391,4 @@ ATF_INIT_TEST_CASES(tcs)
ATF_ADD_TEST_CASE(tcs, exec_exitstatus);
ATF_ADD_TEST_CASE(tcs, exec_stdout_stderr);
ATF_ADD_TEST_CASE(tcs, exec_unknown);
-
- // Add the test cases for the header file.
- ATF_ADD_TEST_CASE(tcs, include);
}
OpenPOWER on IntegriCloud