Try to make test more robust.
authorCarl Hetherington <cth@carlh.net>
Sat, 20 Apr 2024 22:43:28 +0000 (00:43 +0200)
committerCarl Hetherington <cth@carlh.net>
Sat, 20 Apr 2024 22:43:28 +0000 (00:43 +0200)
test/kdm_cli_test.cc

index 303f2b0d4d470b8d01cc35ef930e7f608f755a8d..6e54f3a6c2f21a207374c069fe75ac561a42c24f 100644 (file)
@@ -127,7 +127,7 @@ BOOST_AUTO_TEST_CASE(kdm_cli_specify_decryption_key_test)
        output.clear();
        error = run(bad_args, output, false);
        BOOST_REQUIRE(error);
-       BOOST_CHECK(error->find("oaep decoding error") != string::npos);
+       BOOST_CHECK(error->find("Could not decrypt KDM") != string::npos);
 
        vector<string> good_args = {
                "kdm_cli",