You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by jo...@apache.org on 2015/10/18 22:27:59 UTC
[3/4] mesos git commit: Windows:[3/3] Transitioned Mesos tests to use
`os::raw` family.
Windows:[3/3] Transitioned Mesos tests to use `os::raw` family.
In the previous commits, we've added a family of wrapper functions in
`os::raw` that allow us to get the environment variables of the
executing process. This commit will transition the Mesos tests to use
those functions.
Review: https://reviews.apache.org/r/39264
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/16d1c934
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/16d1c934
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/16d1c934
Branch: refs/heads/master
Commit: 16d1c9342ddc28c7acd9d2d612b6119a4d897525
Parents: 451324f
Author: Alex Clemmer <cl...@gmail.com>
Authored: Sun Oct 18 15:32:01 2015 -0400
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Sun Oct 18 15:34:03 2015 -0400
----------------------------------------------------------------------
src/tests/environment.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/16d1c934/src/tests/environment.cpp
----------------------------------------------------------------------
diff --git a/src/tests/environment.cpp b/src/tests/environment.cpp
index df33a6b..fd6ac2f 100644
--- a/src/tests/environment.cpp
+++ b/src/tests/environment.cpp
@@ -420,7 +420,7 @@ Environment::Environment(const Flags& _flags) : flags(_flags)
void Environment::SetUp()
{
// Clear any MESOS_ environment variables so they don't affect our tests.
- char** environ = os::environ();
+ char** environ = os::raw::environment();
for (int i = 0; environ[i] != NULL; i++) {
string variable = environ[i];
if (variable.find("MESOS_") == 0) {