~ubuntu-branches/ubuntu/wily/mir/wily-proposed

« back to all changes in this revision

Viewing changes to tests/mir_test_framework/process.cpp

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release
  • Date: 2014-10-10 14:01:26 UTC
  • mto: This revision was merged to the branch mainline in revision 84.
  • Revision ID: package-import@ubuntu.com-20141010140126-n1czko8na1kuz4ll
Tags: upstream-0.8.0+14.10.20141010
ImportĀ upstreamĀ versionĀ 0.8.0+14.10.20141010

Show diffs side-by-side

added added

removed removed

Lines of Context:
25
25
 
26
26
#include <boost/exception/errinfo_errno.hpp>
27
27
 
 
28
#include <system_error>
28
29
#include <cassert>
29
30
#include <chrono>
30
31
#include <ostream>
45
46
    if (::kill(pid, signum) != 0)
46
47
    {
47
48
        BOOST_THROW_EXCEPTION(
48
 
            ::boost::enable_error_info(std::runtime_error("Failed to kill process."))
 
49
            ::boost::enable_error_info(std::system_error(errno,
 
50
                                                         std::system_category(),
 
51
                                                         "Failed to kill process."))
49
52
            << errinfo_pid(pid)
50
 
            << errinfo_signum(signum)
51
 
            << boost::errinfo_errno(errno));
 
53
            << errinfo_signum(signum));
52
54
    }
53
55
}
54
56
}