Skip to content

Commit

Permalink
Update ProjMgrUnitTests.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
soumeh01 authored Oct 1, 2024
1 parent b39e130 commit 6e2e41a
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions tools/projmgr/test/src/ProjMgrUnitTests.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6459,18 +6459,8 @@ TEST_F(ProjMgrUnitTests, RegionsFileGeneration) {
testinput_folder + "/TestMemoryRegions/RTE/Device/RteTestDevice_Dual_cm0_core1/regions_RteTestDevice_Dual_cm0_core1.h");
}

TEST_F(ProjMgrUnitTests, MissingFile) {
StdStreamRedirect streamRedirect;
char* argv[3];
const string& csolution = testinput_folder + "/TestSolution/missing.csolution.yml";
argv[1] = (char*)"convert";
argv[2] = (char*)csolution.c_str();
EXPECT_EQ(1, RunProjMgr(3, argv, m_envp));
const string expectedOutStr = ".*/missing.cproject.yml:7:11 - error csolution: file '.*/TestSolution/missing.c' was not found";
EXPECT_TRUE(regex_search(streamRedirect.GetErrorString(), regex(expectedOutStr)));
}

TEST_F(ProjMgrUnitTests, MissingFile_test) {
TEST_F(ProjMgrUnitTests, MissingFile) {
StdStreamRedirect streamRedirect;
char* argv[3];
const string& csolution = testinput_folder + "/TestSolution/missing.csolution.yml";
Expand All @@ -6480,4 +6470,3 @@ TEST_F(ProjMgrUnitTests, MissingFile_test) {
const string expectedOutStr = ".*/missing.cproject.yml:7:11 - error csolution: file '.*/TestSolution/missing.c' was not found";
EXPECT_TRUE(regex_search(streamRedirect.GetErrorString(), regex(expectedOutStr)));
}

0 comments on commit 6e2e41a

Please sign in to comment.