mirror of
https://github.com/transmission/transmission.git
synced 2026-02-14 23:19:34 +00:00
test: add platform tests (#3514)
* test: add tr_getDefaultDownloadDir() tests this also indirectly tests xdg and homedir * test: add PlatformTest.defaultConfigDirEnv * test: add PlatformTest.defaultConfigDirXdgConfig test: add PlatformTest.defaultConfigDirXdgConfigHome * test: add PlatformTest.webClientDirEnvClutch test: add PlatformTest.webClientDirEnvTr test: add PlatformTest.webClientDirXdgDataHome * fixup! test: add PlatformTest.webClientDirEnvClutch fix: win32 breakage
This commit is contained in:
@@ -202,7 +202,6 @@ static char const* getConfigDir(int argc, char const** argv)
|
||||
int tr_main(int argc, char* argv[])
|
||||
{
|
||||
tr_variant settings;
|
||||
char const* configDir;
|
||||
|
||||
tr_formatter_mem_init(MemK, MemKStr, MemMStr, MemGStr, MemTStr);
|
||||
tr_formatter_size_init(DiskK, DiskKStr, DiskMStr, DiskGStr, DiskTStr);
|
||||
@@ -219,7 +218,7 @@ int tr_main(int argc, char* argv[])
|
||||
|
||||
/* load the defaults from config file + libtransmission defaults */
|
||||
tr_variantInitDict(&settings, 0);
|
||||
configDir = getConfigDir(argc, (char const**)argv);
|
||||
char const* const configDir = getConfigDir(argc, (char const**)argv);
|
||||
tr_sessionLoadSettings(&settings, configDir, MyConfigName);
|
||||
|
||||
/* the command line overrides defaults */
|
||||
|
||||
Reference in New Issue
Block a user