Used path::join in test hook for slavePreLaunchDockerHook.
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/0e00a830 Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/0e00a830 Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/0e00a830 Branch: refs/heads/master Commit: 0e00a83061a74a40aaad18ddc1bd7de720c36c6d Parents: 80550c7 Author: Jie Yu <yujie....@gmail.com> Authored: Wed Apr 13 16:51:48 2016 -0700 Committer: Jie Yu <yujie....@gmail.com> Committed: Wed Apr 13 17:08:59 2016 -0700 ---------------------------------------------------------------------- src/examples/test_hook_module.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/mesos/blob/0e00a830/src/examples/test_hook_module.cpp ---------------------------------------------------------------------- diff --git a/src/examples/test_hook_module.cpp b/src/examples/test_hook_module.cpp index 3ff9fd7..0b1426b 100644 --- a/src/examples/test_hook_module.cpp +++ b/src/examples/test_hook_module.cpp @@ -194,7 +194,7 @@ public: const Option<map<string, string>>& env) { LOG(INFO) << "Executing 'slavePreLaunchDockerHook'"; - return os::touch(sandboxDirectory + "/foo"); + return os::touch(path::join(sandboxDirectory, "foo")); }