Change check for element uniqueness.
GitOrigin-RevId: 3a7499f3b7f1aead7ebe80f147b9ddc42c87fc33
This commit is contained in:
parent
38e4310b71
commit
a4b67b9496
@ -129,7 +129,6 @@ TEST(Port, Writev) {
|
||||
|
||||
#include <algorithm>
|
||||
#include <mutex>
|
||||
#include <set>
|
||||
|
||||
static std::mutex m;
|
||||
static std::vector<std::string> ptrs;
|
||||
@ -197,9 +196,9 @@ TEST(Post, SignalsAndThread) {
|
||||
}
|
||||
std::sort(ptrs.begin(), ptrs.end());
|
||||
CHECK(ptrs == ans);
|
||||
ASSERT_EQ(10u, std::set<int *>(addrs.begin(), addrs.end()).size());
|
||||
std::sort(addrs.begin(), addrs.end());
|
||||
ASSERT_TRUE(std::unique(addrs.begin(), addrs.end()) == addrs.end());
|
||||
//LOG(ERROR) << addrs;
|
||||
}
|
||||
//ASSERT_EQ(10u, ptrs.size());
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user