You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Ian Downes (JIRA)" <ji...@apache.org> on 2013/09/05 19:40:52 UTC

[jira] [Commented] (MESOS-678) Isolator.Usage test isn't run on OSX

    [ https://issues.apache.org/jira/browse/MESOS-678?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13759255#comment-13759255 ] 

Ian Downes commented on MESOS-678:
----------------------------------

Actually, this is intentional because resource usage isn't correct on OSX unless run as root. See src/tests/environment.cpp
                
> Isolator.Usage test isn't run on OSX
> ------------------------------------
>
>                 Key: MESOS-678
>                 URL: https://issues.apache.org/jira/browse/MESOS-678
>             Project: Mesos
>          Issue Type: Bug
>          Components: test
>         Environment: OSX
>            Reporter: Ian Downes
>            Assignee: Ian Downes
>            Priority: Minor
>
> {noformat}
> [1026][idownes:build]$ git log -n 1
> commit 4954b75f6fbe2d23fb3e11489441036bd3676017
> Author: Benjamin Mahler <bm...@twitter.com>
> Date:   Tue Sep 3 23:12:55 2013 -0700
>     Exposing cpu.stat statistics in the monitoring endpoint.
>     From: Christina Delimitrou <ch...@gmail.com>
>     Review: https://reviews.apache.org/r/13868
> {noformat}
> On OSX it filters out the test:
> {noformat}
> [1026][idownes:build]$ ./bin/mesos-tests.sh --gtest_filter="IsolatorTest/*"
> Source directory: /Users/idownes/projects/mesos
> Build directory: /Users/idownes/projects/mesos/build
> Note: Google Test filter = IsolatorTest/*-IsolatorTest/0.Usage:
> [==========] Running 0 tests from 0 test cases.
> [==========] 0 tests from 0 test cases ran. (0 ms total)
> [  PASSED  ] 0 tests.
> {noformat}
> whereas on Linux it runs (both the ProcessIsolator and CgroupsIsolator):
> {noformat}
> Note: Google Test filter = IsolatorTest/*-
> [==========] Running 2 tests from 2 test cases.
> [----------] Global test environment set-up.
> [----------] 1 test from IsolatorTest/0, where TypeParam = mesos::internal::slave::ProcessIsolatorProcess
> [ RUN      ] IsolatorTest/0.Usage
> .......
> [       OK ] IsolatorTest/0.Usage (1055 ms)
> [----------] 1 test from IsolatorTest/0 (1055 ms total)
> [----------] 1 test from IsolatorTest/1, where TypeParam = mesos::internal::slave::CgroupsIsolatorProcess
> [ RUN      ] IsolatorTest/1.Usage
> .......
> [       OK ] IsolatorTest/1.Usage (1180 ms)
> [----------] 1 test from IsolatorTest/1 (1180 ms total)
> [----------] Global test environment tear-down
> [==========] 2 tests from 2 test cases ran. (2237 ms total)
> [  PASSED  ] 2 tests.
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira