You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@mesos.apache.org by "Benjamin Mahler (JIRA)" <ji...@apache.org> on 2013/08/14 01:51:47 UTC
[jira] [Commented] (MESOS-641) stout pstree test fails
[ https://issues.apache.org/jira/browse/MESOS-641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13739037#comment-13739037 ]
Benjamin Mahler commented on MESOS-641:
---------------------------------------
Could you do us a huge favor and modify the source to have the following:
$ git diff
diff --git a/3rdparty/libprocess/3rdparty/stout/tests/os_tests.cpp b/3rdparty/libprocess/3rdparty/stout/tests/os_tests.cpp
index 0ef2eb5..2151744 100644
--- a/3rdparty/libprocess/3rdparty/stout/tests/os_tests.cpp
+++ b/3rdparty/libprocess/3rdparty/stout/tests/os_tests.cpp
@@ -503,6 +503,7 @@ TEST_F(OsTest, pstree)
Exec("sleep 10"))();
ASSERT_SOME(tree);
+ std::cout << "Before:\n" << stringify(tree.get()) << std::endl;
ASSERT_EQ(1u, tree.get().children.size());
pid_t child = tree.get().process.pid;
@@ -514,7 +515,8 @@ TEST_F(OsTest, pstree)
ASSERT_SOME(tree);
EXPECT_EQ(child, tree.get().process.pid);
- ASSERT_EQ(1u, tree.get().children.size());
+ std::cout << "After:\n" << stringify(tree.get()) << std::endl;
+ ASSERT_EQ(1u, tree.get().children.size()) << stringify(tree.get());
EXPECT_EQ(grandchild, tree.get().children.front().process.pid);
// Cleanup by killing the descendant processes.
And then re-run the tests and post the output?
> stout pstree test fails
> -----------------------
>
> Key: MESOS-641
> URL: https://issues.apache.org/jira/browse/MESOS-641
> Project: Mesos
> Issue Type: Bug
> Components: test
> Affects Versions: 0.14.0
> Environment: Debian Squeeze or Ubuntu 10.04
> git HEAD version (from github)
> Reporter: Damien Hardy
>
> When running stout-tests during make check :
> [...]
> [ RUN ] OsTest.pstree
> stout/tests/os_tests.cpp:517: Failure
> Value of: tree.get().children.size()
> Actual: 2
> Expected: 1u
> Which is: 1
> [ FAILED ] OsTest.pstree (62 ms)
> [...]
--
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