mesos-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vinodk...@apache.org
Subject [2/5] mesos git commit: Updated libprocess tests to work with the new `flag.load()` signature.
Date Fri, 13 May 2016 04:13:26 GMT
Updated libprocess tests to work with the new `flag.load()` signature.

No functional changes.

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


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

Branch: refs/heads/master
Commit: a7e8e94d694827501c838a5ec0b490a449b25105
Parents: 2f5ec6b
Author: Vinod Kone <vinodkone@gmail.com>
Authored: Thu Apr 28 21:12:38 2016 -0700
Committer: Vinod Kone <vinodkone@gmail.com>
Committed: Thu May 12 21:13:02 2016 -0700

----------------------------------------------------------------------
 3rdparty/libprocess/src/tests/subprocess_tests.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/a7e8e94d/3rdparty/libprocess/src/tests/subprocess_tests.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/src/tests/subprocess_tests.cpp b/3rdparty/libprocess/src/tests/subprocess_tests.cpp
index 727e940..2a5f7fc 100644
--- a/3rdparty/libprocess/src/tests/subprocess_tests.cpp
+++ b/3rdparty/libprocess/src/tests/subprocess_tests.cpp
@@ -609,8 +609,10 @@ TEST_F(SubprocessTest, Flags)
   }
 
   Flags flags2;
-  Try<Nothing> load = flags2.load(None(), argc, argv);
+  Try<flags::Warnings> load = flags2.load(None(), argc, argv);
   ASSERT_SOME(load);
+  EXPECT_EQ(0, load->warnings.size());
+
   EXPECT_EQ(flags.b, flags2.b);
   EXPECT_EQ(flags.i, flags2.i);
   EXPECT_EQ(flags.s, flags2.s);


Mime
View raw message