mirror of
https://github.com/etlegacy/Update-Installer.git
synced 2024-11-26 13:51:11 +00:00
Fix UpdaterOptions test on Mac. On Mac /tmp is a symlink to /private/tmp
This commit is contained in:
parent
6ca00a6449
commit
483ad4cee0
1 changed files with 4 additions and 1 deletions
|
@ -41,8 +41,11 @@ void TestUpdaterOptions::testOldFormatArgs()
|
|||
options.parse(argc,argv);
|
||||
|
||||
TEST_COMPARE(options.mode,UpdateInstaller::Setup);
|
||||
#ifdef PLATFORM_UNIX
|
||||
#ifdef PLATFORM_LINUX
|
||||
TEST_COMPARE(options.installDir,"/tmp/path-to-app");
|
||||
#elif defined(PLATFORM_MAC)
|
||||
// /tmp is a symlink to /private/tmp on Mac
|
||||
TEST_COMPARE(options.installDir,"/private/tmp/path-to-app");
|
||||
#else
|
||||
TEST_COMPARE(options.installDir,"C:/path/to/app/");
|
||||
#endif
|
||||
|
|
Loading…
Reference in a new issue