You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by vi...@apache.org on 2013/03/05 23:45:39 UTC
svn commit: r1453054 - /incubator/mesos/trunk/src/tests/cgroups_tests.cpp
Author: vinodkone
Date: Tue Mar 5 22:45:39 2013
New Revision: 1453054
URL: http://svn.apache.org/r1453054
Log:
Fix cgroups stat test.
Review: https://reviews.apache.org/r/9746
Modified:
incubator/mesos/trunk/src/tests/cgroups_tests.cpp
Modified: incubator/mesos/trunk/src/tests/cgroups_tests.cpp
URL: http://svn.apache.org/viewvc/incubator/mesos/trunk/src/tests/cgroups_tests.cpp?rev=1453054&r1=1453053&r2=1453054&view=diff
==============================================================================
--- incubator/mesos/trunk/src/tests/cgroups_tests.cpp (original)
+++ incubator/mesos/trunk/src/tests/cgroups_tests.cpp Tue Mar 5 22:45:39 2013
@@ -430,7 +430,17 @@ TEST_F(CgroupsAnyHierarchyTest, ROOT_CGR
}
}
-TEST_F(CgroupsAnyHierarchyTest, ROOT_CGROUPS_Stat)
+
+class CgroupsAnyHierarchyWithCpuAcctMemoryTest
+ : public CgroupsAnyHierarchyTest
+{
+public:
+ CgroupsAnyHierarchyWithCpuAcctMemoryTest()
+ : CgroupsAnyHierarchyTest("cpuacct,memory") {}
+};
+
+
+TEST_F(CgroupsAnyHierarchyWithCpuAcctMemoryTest, ROOT_CGROUPS_Stat)
{
EXPECT_ERROR(cgroups::stat(hierarchy, "mesos_test", "invalid"));