diff --git a/tools/projmgr/test/data/TestSolution/outdirs-absolute.csolution.yml b/tools/projmgr/test/data/TestSolution/outdirs-absolute.csolution.yml index 6400780e0..1f3430676 100644 --- a/tools/projmgr/test/data/TestSolution/outdirs-absolute.csolution.yml +++ b/tools/projmgr/test/data/TestSolution/outdirs-absolute.csolution.yml @@ -17,6 +17,6 @@ solution: - project: ./TestProject1/test1.cproject.yml output-dirs: - cprjdir: C:/$Compiler$ + cprjdir: \\non_existing_cmsis/$Compiler$ intdir: /$Compiler$ tmpdir: /root diff --git a/tools/projmgr/test/src/ProjMgrUnitTests.cpp b/tools/projmgr/test/src/ProjMgrUnitTests.cpp index e754cd5b4..7e73b6c12 100644 --- a/tools/projmgr/test/src/ProjMgrUnitTests.cpp +++ b/tools/projmgr/test/src/ProjMgrUnitTests.cpp @@ -4126,7 +4126,7 @@ TEST_F(ProjMgrUnitTests, OutputDirsAbsolutePath) { argv[2] = (char*)"--solution"; argv[3] = (char*)csolution.c_str(); argv[4] = (char*)"--cbuildgen"; - EXPECT_EQ(CrossPlatformUtils::GetHostType() == "win" ? 1 : 0, RunProjMgr(5, argv, m_envp)); + EXPECT_EQ(1, RunProjMgr(5, argv, m_envp)); auto errStr = streamRedirect.GetErrorString(); EXPECT_TRUE(regex_search(errStr, regex("warning csolution: absolute path .* is not portable, use relative path instead")));