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:
@@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user