[master] update to atf 0.17
3648. [test] Updated the ATF test framework to version 0.17. [RT #25627]
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
//
|
||||
// Automated Testing Framework (atf)
|
||||
//
|
||||
// Copyright (c) 2007, 2008, 2009, 2010 The NetBSD Foundation, Inc.
|
||||
// Copyright (c) 2007 The NetBSD Foundation, Inc.
|
||||
// All rights reserved.
|
||||
//
|
||||
// Redistribution and use in source and binary forms, with or without
|
||||
@@ -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"
|
||||
|
||||
@@ -224,27 +224,6 @@ ATF_TEST_CASE_BODY(expect_timeout_but_pass)
|
||||
expect_timeout("Will just exit");
|
||||
}
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
// 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);
|
||||
|
||||
Reference in New Issue
Block a user