File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 1212#include " RteDevice.h"
1313#include " RteFile.h"
1414#include " RtePackage.h"
15+ #include " RteFsUtils.h"
1516#include < map>
1617using namespace std ;
1718
@@ -184,7 +185,7 @@ TEST(RteItemTest, GetInstancePathName) {
184185 string packFileName = " TestCmsisPackRoot/" + pack.GetPackagePath () + RtePackage::GetPackageFileNameFromAttributes (pack, false , " .pdsc" );
185186 pack.SetRootFileName (packFileName);
186187 EXPECT_EQ (pack.GetPackageFileName (), packFileName);
187- string cmsisPackRoot = RteUtils::ExtractFilePath (pack.GetAbsolutePackagePath (), true );
188+ string cmsisPackRoot = RteFsUtils::MakePathCanonical (pack.GetAbsolutePackagePath ());
188189
189190 RteItem* rteItem = new RteItem (" test" , &pack);
190191 rteItem->SetAttribute (" name" , " MyDir/MyFile.ext" );
You can’t perform that action at this time.
0 commit comments