You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ti...@apache.org on 2016/01/26 18:24:21 UTC

mesos git commit: Fixed sign mismatched comparison in ContainerLoggerTest.

Repository: mesos
Updated Branches:
  refs/heads/master 66893f6ce -> 9e0528eda


Fixed sign mismatched comparison in ContainerLoggerTest.

Review: https://reviews.apache.org/r/42803/


Project: http://git-wip-us.apache.org/repos/asf/mesos/repo
Commit: http://git-wip-us.apache.org/repos/asf/mesos/commit/9e0528ed
Tree: http://git-wip-us.apache.org/repos/asf/mesos/tree/9e0528ed
Diff: http://git-wip-us.apache.org/repos/asf/mesos/diff/9e0528ed

Branch: refs/heads/master
Commit: 9e0528eda05370fb3a1941f4585205a28e69ede8
Parents: 66893f6
Author: Till Toenshoff <to...@me.com>
Authored: Tue Jan 26 17:49:37 2016 +0100
Committer: Till Toenshoff <to...@me.com>
Committed: Tue Jan 26 17:49:37 2016 +0100

----------------------------------------------------------------------
 src/tests/container_logger_tests.cpp | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/9e0528ed/src/tests/container_logger_tests.cpp
----------------------------------------------------------------------
diff --git a/src/tests/container_logger_tests.cpp b/src/tests/container_logger_tests.cpp
index ce551cb..5fe9cce 100644
--- a/src/tests/container_logger_tests.cpp
+++ b/src/tests/container_logger_tests.cpp
@@ -464,8 +464,8 @@ TEST_F(ContainerLoggerTest, LOGROTATE_RotateInSandbox)
   // one MB since there is also the executor's output besides the task's stdout.
   Try<Bytes> stdoutSize = os::stat::size(stdoutPath);
   ASSERT_SOME(stdoutSize);
-  EXPECT_LE(1024, stdoutSize->kilobytes());
-  EXPECT_GE(1050, stdoutSize->kilobytes());
+  EXPECT_LE(1024u, stdoutSize->kilobytes());
+  EXPECT_GE(1050u, stdoutSize->kilobytes());
 
   // We should only have files up to "stdout.4".
   stdoutPath = path::join(sandboxDirectory, "stdout.5");
@@ -479,8 +479,8 @@ TEST_F(ContainerLoggerTest, LOGROTATE_RotateInSandbox)
     // NOTE: The rotated files are written in contiguous blocks, meaning that
     // each file may be less than the maximum allowed size.
     stdoutSize = os::stat::size(stdoutPath);
-    EXPECT_LE(2040, stdoutSize->kilobytes());
-    EXPECT_GE(2048, stdoutSize->kilobytes());
+    EXPECT_LE(2040u, stdoutSize->kilobytes());
+    EXPECT_GE(2048u, stdoutSize->kilobytes());
   }
 }