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 2016/03/15 21:17:07 UTC
mesos git commit: Fixed IOTest.BufferedRead to write to a temporary
directory.
Repository: mesos
Updated Branches:
refs/heads/master 35761379c -> 6202ab156
Fixed IOTest.BufferedRead to write to a temporary directory.
This commit changes IOTest.BufferedRead so that this specific
test (not all IOTest) could be executed from temporary
directories via TemporaryDirectoryTest fixture (MESOS-4807).
Review: https://reviews.apache.org/r/44380/
Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/6202ab15
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/6202ab15
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/6202ab15
Branch: refs/heads/master
Commit: 6202ab1562c4c9355f31553b5d22dd8db137ec91
Parents: 3576137
Author: Yong Tang <yo...@outlook.com>
Authored: Tue Mar 15 12:57:35 2016 -0700
Committer: Joris Van Remoortere <jo...@gmail.com>
Committed: Tue Mar 15 13:16:19 2016 -0700
----------------------------------------------------------------------
3rdparty/libprocess/src/tests/io_tests.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/mesos/blob/6202ab15/3rdparty/libprocess/src/tests/io_tests.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/io_tests.cpp b/3rdparty/libprocess/src/tests/io_tests.cpp
index 2bffc7c..87fd3fa 100644
--- a/3rdparty/libprocess/src/tests/io_tests.cpp
+++ b/3rdparty/libprocess/src/tests/io_tests.cpp
@@ -21,6 +21,8 @@
#include <stout/gtest.hpp>
#include <stout/os.hpp>
+#include <stout/tests/utils.hpp>
+
#include "encoder.hpp"
namespace io = process::io;
@@ -29,6 +31,8 @@ using process::Future;
using std::string;
+class IOWriteTest : public TemporaryDirectoryTest {};
+
TEST(IOTest, Poll)
{
ASSERT_TRUE(GTEST_IS_THREADSAFE);
@@ -121,7 +125,7 @@ TEST(IOTest, Read)
}
-TEST(IOTest, BufferedRead)
+TEST_F(IOWriteTest, BufferedRead)
{
// 128 Bytes.
string data =
@@ -290,7 +294,7 @@ TEST(IOTest, DISABLED_BlockingWrite)
}
-TEST(IOTest, Redirect)
+TEST_F(IOWriteTest, Redirect)
{
ASSERT_TRUE(GTEST_IS_THREADSAFE);