From 9bfb1136abfd58e48545304507dedceb2fe87a36 Mon Sep 17 00:00:00 2001 From: David Kalnischkies Date: Sat, 12 Sep 2015 01:23:01 +0200 Subject: srv test: do 100 pulls twice and compare list The previous implementation was still a bit unstable in terms of failing at times. Lets try if we have more luck with this one. Git-Dch: Ignore --- apt-pkg/contrib/srvrec.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apt-pkg/contrib/srvrec.h') diff --git a/apt-pkg/contrib/srvrec.h b/apt-pkg/contrib/srvrec.h index 2adad03e9..920b6bb32 100644 --- a/apt-pkg/contrib/srvrec.h +++ b/apt-pkg/contrib/srvrec.h @@ -12,6 +12,7 @@ #include #include #include +#include class SrvRec { @@ -29,6 +30,9 @@ class SrvRec bool operator<(SrvRec const &other) const { return this->priority < other.priority; } + bool operator==(SrvRec const &other) const { + return std::tie(target, priority, weight, port) == std::tie(other.target, other.priority, other.weight, other.port); + } SrvRec(std::string const Target, u_int16_t const Priority, u_int16_t const Weight, u_int16_t const Port) : -- cgit v1.2.3