You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mesos.apache.org by ji...@apache.org on 2016/03/29 06:57:37 UTC

[3/3] mesos git commit: Cleaned up a test case in stout.

Cleaned up a test case in stout.

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


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

Branch: refs/heads/master
Commit: 5a74c6ba466ec7a5c88b6c85462273832c5b9f9a
Parents: e021a01
Author: Neil Conway <ne...@gmail.com>
Authored: Mon Mar 28 21:57:21 2016 -0700
Committer: Jie Yu <yu...@gmail.com>
Committed: Mon Mar 28 21:57:21 2016 -0700

----------------------------------------------------------------------
 .../3rdparty/stout/tests/os/filesystem_tests.cpp         | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/mesos/blob/5a74c6ba/3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp
----------------------------------------------------------------------
diff --git a/3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp b/3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp
index 4c30189..1336972 100644
--- a/3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp
+++ b/3rdparty/libprocess/3rdparty/stout/tests/os/filesystem_tests.cpp
@@ -177,14 +177,13 @@ TEST_F(FsTest, List)
 
   // Search all files in folder
   Try<list<string>> allFiles = fs::list(path::join(testdir, "*"));
-  ASSERT_TRUE(allFiles.get().size() == 3);
+  EXPECT_EQ(3u, allFiles.get().size());
 
   // Search .jpg files in folder
   Try<list<string>> jpgFiles = fs::list(path::join(testdir, "*.jpg"));
-  ASSERT_TRUE(jpgFiles.get().size() == 1);
+  EXPECT_EQ(1u, jpgFiles.get().size());
 
-  // Search test*.txt files in folder
-  Try<list<string>> testTxtFiles = fs::list(path::join(testdir, "*.txt"));
-
-  ASSERT_TRUE(testTxtFiles.get().size() == 2);
+  // Search .txt files in folder
+  Try<list<string>> txtFiles = fs::list(path::join(testdir, "*.txt"));
+  EXPECT_EQ(2u, txtFiles.get().size());
 }