]> granicus.if.org Git - pdns/commitdiff
Exact string returned is lib dependent. So only check prefix.
authorOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2019 08:44:39 +0000 (10:44 +0200)
committerOtto Moerbeek <otto.moerbeek@open-xchange.com>
Wed, 26 Jun 2019 08:44:39 +0000 (10:44 +0200)
pdns/recursordist/test-secpoll_cc.cc

index 6834b52311403e1eb5d805b7142828b7b4aa30d0..c1b2778f51651c27030270875d2a324147bfb3fb 100644 (file)
@@ -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;
 }