Disable i18n test when i18n is disabled

This commit is contained in:
Alexey Sokolov
2025-05-04 10:36:48 +01:00
parent 1ec5408d7a
commit 50f085cc2f
2 changed files with 5 additions and 0 deletions

View File

@@ -444,6 +444,10 @@ TEST_F(ZNCTest, ModpythonCommand) {
client.Write("PRIVMSG *cmdtest :ping or");
client.ReadUntil(":*cmdtest!cmdtest@znc.in PRIVMSG nick :ping or pong");
#ifndef HAVE_I18N
GTEST_SKIP() << "I18N is disabled, skipping the rest of this test";
#endif
InstallTranslation("cmdtest", "ru_RU", R"(
msgid ""
msgstr ""