2
0
mirror of https://github.com/meganz/MEGAcmd synced 2025-08-31 13:55:10 +00:00

Don't compare dirs->configDirPath() against wide strings.

This commit is contained in:
Vibhav Pant
2024-03-21 19:33:42 +05:30
parent 3b5017cfe8
commit c09ee64ec6

View File

@@ -67,12 +67,12 @@ TEST(PlatformDirectoriesTest, configDirPath)
{
G_SUBTEST << "With $MEGACMD_WORKING_FOLDER_SUFFIX";
auto guard = TestInstrumentsEnvVarGuard("MEGACMD_WORKING_FOLDER_SUFFIX", "foobar");
EXPECT_THAT(dirs->configDirPath(), testing::EndsWith(L".megaCmd_foobar"));
EXPECT_THAT(dirs->configDirPath(), testing::EndsWith(".megaCmd_foobar"));
}
{
G_SUBTEST << "Without $MEGACMD_WORKING_FOLDER_SUFFIX";
auto guard = TestInstrumentsUnsetEnvVarGuard("MEGACMD_WORKING_FOLDER_SUFFIX");
EXPECT_THAT(dirs->configDirPath(), testing::EndsWith(L".megaCmd"));
EXPECT_THAT(dirs->configDirPath(), testing::EndsWith(".megaCmd"));
}
#endif
}