From: Otto Moerbeek Date: Wed, 26 Jun 2019 08:44:39 +0000 (+0200) Subject: Exact string returned is lib dependent. So only check prefix. X-Git-Tag: dnsdist-1.4.0-rc1~93^2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=refs%2Fpull%2F7947%2Fhead;p=thirdparty%2Fpdns.git Exact string returned is lib dependent. So only check prefix. --- diff --git a/pdns/recursordist/test-secpoll_cc.cc b/pdns/recursordist/test-secpoll_cc.cc index 6834b52311..c1b2778f51 100644 --- a/pdns/recursordist/test-secpoll_cc.cc +++ b/pdns/recursordist/test-secpoll_cc.cc @@ -28,12 +28,12 @@ bool checkBasicMessage3(const PDNSException &ex) { } bool checkBasicMessage4(const PDNSException &ex) { - BOOST_CHECK_EQUAL(ex.reason, "Could not parse status number: stoi: no conversion"); + BOOST_CHECK(ex.reason.find("Could not parse status number: stoi") == 0); return true; } bool checkBasicMessage5(const PDNSException &ex) { - BOOST_CHECK_EQUAL(ex.reason, "Could not parse status number: stoi: no conversion"); + BOOST_CHECK(ex.reason.find("Could not parse status number: stoi") == 0); return true; }