Repository: mesos Updated Branches: refs/heads/master d57d9a6fd -> 136ecb05c
Converted CHECK functions to ASSERT in mesos.cpp to fail the test without aborting the test harness. Review: https://reviews.apache.org/r/37490 Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/136ecb05 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/136ecb05 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/136ecb05 Branch: refs/heads/master Commit: 136ecb05c73c315b2c423501e736a5b0b2333129 Parents: d57d9a6 Author: Paul Brett <[email protected]> Authored: Fri Aug 14 15:07:07 2015 -0700 Committer: Jie Yu <[email protected]> Committed: Fri Aug 14 15:07:07 2015 -0700 ---------------------------------------------------------------------- src/tests/mesos.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/136ecb05/src/tests/mesos.cpp ---------------------------------------------------------------------- diff --git a/src/tests/mesos.cpp b/src/tests/mesos.cpp index 9bff4a6..ab2d85b 100644 --- a/src/tests/mesos.cpp +++ b/src/tests/mesos.cpp @@ -737,7 +737,7 @@ void ContainerizerTest<slave::MesosContainerizer>::SetUp() // otherwise our tests will fail when we try and clean them up // later). Try<std::vector<string>> cgroups = cgroups::get(hierarchy); - CHECK_SOME(cgroups); + ASSERT_SOME(cgroups); foreach (const string& cgroup, cgroups.get()) { // Remove any cgroups that start with TEST_CGROUPS_ROOT. @@ -771,7 +771,7 @@ void ContainerizerTest<slave::MesosContainerizer>::TearDown() string hierarchy = path::join(baseHierarchy, subsystem); Try<std::vector<string>> cgroups = cgroups::get(hierarchy); - CHECK_SOME(cgroups); + ASSERT_SOME(cgroups); foreach (const string& cgroup, cgroups.get()) { // Remove any cgroups that start with TEST_CGROUPS_ROOT.
