This is another test that uses the perf_event isolator, please disable that test too with GTEST_FILTER="-Perf*:-UserCgroupIsolatorTest*UserCgroup"
See here for more documentation on skipping tests: https://code.google.com/p/googletest/wiki/V1_6_AdvancedGuide#Running_a_Subset_of_the_Tests This will all be automatically handled when the correct environment detection is implemented. On Mon, Jun 1, 2015 at 7:25 PM, Qian Zhang <[email protected]> wrote: > I reran the check with "GTEST_FILTER="-Perf*" make check", but it failed > again in another place: > > [ RUN ] UserCgroupIsolatorTest/1.ROOT_CGROUPS_UserCgroup > -bash: /sys/fs/cgroup/cpu/mesos/container/cgroup.procs: No such file or > directory > mkdir: cannot create directory `/sys/fs/cgroup/cpu/mesos/container/user': > No such file or directory > ../../src/tests/isolator_tests.cpp:1127: Failure > Value of: os::system( "su - " + UNPRIVILEGED_USERNAME + " -c 'mkdir " + > path::join(flags.cgroups_hierarchy, userCgroup) + "'") > Actual: 256 > Expected: 0 > -bash: /sys/fs/cgroup/cpu/mesos/container/user/cgroup.procs: No such file > or directory > ../../src/tests/isolator_tests.cpp:1136: Failure > Value of: os::system( "su - " + UNPRIVILEGED_USERNAME + " -c 'echo $$ >" + > path::join(flags.cgroups_hierarchy, userCgroup, "cgroup.procs") + "'") > Actual: 256 > Expected: 0 > -bash: /sys/fs/cgroup/cpuacct/mesos/container/cgroup.procs: No such file > or directory > mkdir: cannot create directory > `/sys/fs/cgroup/cpuacct/mesos/container/user': No such file or directory > ../../src/tests/isolator_tests.cpp:1127: Failure > Value of: os::system( "su - " + UNPRIVILEGED_USERNAME + " -c 'mkdir " + > path::join(flags.cgroups_hierarchy, userCgroup) + "'") > Actual: 256 > Expected: 0 > -bash: /sys/fs/cgroup/cpuacct/mesos/container/user/cgroup.procs: No such > file or directory > ../../src/tests/isolator_tests.cpp:1136: Failure > Value of: os::system( "su - " + UNPRIVILEGED_USERNAME + " -c 'echo $$ >" + > path::join(flags.cgroups_hierarchy, userCgroup, "cgroup.procs") + "'") > Actual: 256 > Expected: 0 > [ FAILED ] UserCgroupIsolatorTest/1.ROOT_CGROUPS_UserCgroup, where > TypeParam = mesos::internal::slave::CgroupsCpushareIsolatorProcess (443 ms) > [----------] 1 test from UserCgroupIsolatorTest/1 (443 ms total) > > [----------] 1 test from UserCgroupIsolatorTest/2, where TypeParam = > mesos::internal::slave::CgroupsPerfEventIsolatorProcess > userdel: user 'mesos.test.unprivileged.user' does not exist > [ RUN ] UserCgroupIsolatorTest/2.ROOT_CGROUPS_UserCgroup > F0602 10:13:49.849755 4279 isolator_tests.cpp:1054] CHECK_SOME(isolator): > Perf is not supported > *** Check failure stack trace: *** > 2015-06-02 > 10:13:49,863:4279(0x7fd4cf5fe700):ZOO_ERROR@handle_socket_error_msg@1697: > Socket [127.0.0.1:45737] zk retcode=-4, errno=111(Connection refused): > server refused to accept the client > @ 0x7fd569fc2d60 google::LogMessage::Fail() > @ 0x7fd569fc2cb9 google::LogMessage::SendToLog() > @ 0x7fd569fc2697 google::LogMessage::Flush() > @ 0x7fd569fc561f google::LogMessageFatal::~LogMessageFatal() > @ 0x97fe94 _CheckFatal::~_CheckFatal() > @ 0xc10e55 > > mesos::internal::tests::UserCgroupIsolatorTest_ROOT_CGROUPS_UserCgroup_Test<>::TestBody() > @ 0x10e5fa5 > testing::internal::HandleSehExceptionsInMethodIfSupported<>() > @ 0x10e0abe > testing::internal::HandleExceptionsInMethodIfSupported<>() > @ 0x10c783e testing::Test::Run() > @ 0x10c8078 testing::TestInfo::Run() > @ 0x10c86ac testing::TestCase::Run() > @ 0x10cda39 testing::internal::UnitTestImpl::RunAllTests() > @ 0x10e71f9 > testing::internal::HandleSehExceptionsInMethodIfSupported<>() > @ 0x10e1899 > testing::internal::HandleExceptionsInMethodIfSupported<>() > @ 0x10cc5c1 testing::UnitTest::Run() > @ 0xc9fe96 main > @ 0x38d141ed1d (unknown) > @ 0x85ba69 (unknown) > I0602 10:13:52.680408 5947 exec.cpp:450] Slave exited, but framework has > checkpointing enabled. Waiting 15mins to reconnect with slave > 20150602-101045-2574952640-43322-4279-S0 > make[3]: *** [check-local] Aborted (core dumped) > make[3]: Leaving directory `/root/mesos-0.22.1/build/src' > make[2]: *** [check-am] Error 2 > make[2]: Leaving directory `/root/mesos-0.22.1/build/src' > make[1]: *** [check] Error 2 > make[1]: Leaving directory `/root/mesos-0.22.1/build/src' > make: *** [check-recursive] Error 1 > >

