diff --git a/src/gtest/test_deprecation.cpp b/src/gtest/test_deprecation.cpp index 1a9ffc6ae..bdb52f05a 100644 --- a/src/gtest/test_deprecation.cpp +++ b/src/gtest/test_deprecation.cpp @@ -7,6 +7,7 @@ #include "init.h" #include "ui_interface.h" #include "util.h" +#include "utilstrencodings.h" #include #include @@ -149,10 +150,10 @@ TEST_F(DeprecationTest, AlertNotify) { EXPECT_EQ(r.size(), 1u); // -alertnotify restricts the message to safe characters. - auto expectedMsg = strprintf( + auto expectedMsg = SanitizeString(strprintf( "This version will be deprecated at block height %d, and will automatically shut down. You should upgrade to the latest version of Zcash. To disable deprecation for this version, set disabledeprecation to %s.", DEPRECATION_HEIGHT, - CLIENT_VERSION_STR); + CLIENT_VERSION_STR)); // Windows built-in echo semantics are different than posixy shells. Quotes and // whitespace are printed literally.