Make order of EXPECT_EQ more natural, after upgrade to new GTest.
This commit is contained in:
1 parent
c30e5ef9fd
commit
e3a1308a04
13 files changed
+456
-456
No files matched your search
+2
-2
@@ -174,8 +174,8 @@ TEST(Thread, CancelJobWhenDone) {
|
||||
fd_set fds;
|
||||
FD_ZERO(&fds);
|
||||
FD_SET(CThreadPool::Get().getReadFD(), &fds);
|
||||
EXPECT_EQ(1, select(1 + CThreadPool::Get().getReadFD(), &fds, nullptr,
|
||||
nullptr, nullptr));
|
||||
EXPECT_EQ(select(1 + CThreadPool::Get().getReadFD(), &fds, nullptr,
|
||||
nullptr, nullptr), 1);
|
||||
|
||||
// And only cancel it afterwards
|
||||
CThreadPool::Get().cancelJob(pJob);
|
||||
|
||||
Reference in new issue
Block a user