-
Notifications
You must be signed in to change notification settings - Fork 1
[projmgr] Test OutputDirsAbsolutePath
#19
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Test Results 7 files 53 suites 4m 45s ⏱️ Results for commit 8f6da04. ♻️ This comment has been updated with latest results. |
|
|
||
| TEST_F(ProjMgrUnitTests, OutputDirsAbsolutePath) { | ||
| StdStreamRedirect streamRedirect; | ||
| //StdStreamRedirect streamRedirect; |
Check notice
Code scanning / CodeQL
Commented-out code Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 8 months ago
The best way to fix the problem is to remove the commented-out line entirely. This will eliminate the distraction and potential confusion caused by the presence of commented-out code. If the line is needed later, it can be retrieved from the version control system.
| @@ -4121,3 +4121,2 @@ | ||
| TEST_F(ProjMgrUnitTests, OutputDirsAbsolutePath) { | ||
| //StdStreamRedirect streamRedirect; | ||
| char* argv[5]; |
| //auto errStr = streamRedirect.GetErrorString(); | ||
| //EXPECT_TRUE(regex_search(errStr, regex("warning csolution: absolute path .* is not portable, use relative path instead"))); |
Check notice
Code scanning / CodeQL
Commented-out code Note test
Show autofix suggestion
Hide autofix suggestion
Copilot Autofix
AI 8 months ago
To fix the issue, we need to either remove the commented-out code or reinstate it. Since the commented-out code appears to be part of a test case, it is likely intended to verify specific behavior. Therefore, the best approach is to reinstate the code and ensure it is functional. If the code is no longer needed, it should be removed entirely. In this case, we will reinstate the code to maintain the integrity of the test.
-
Copy modified lines R4131-R4132
| @@ -4130,4 +4130,4 @@ | ||
|
|
||
| //auto errStr = streamRedirect.GetErrorString(); | ||
| //EXPECT_TRUE(regex_search(errStr, regex("warning csolution: absolute path .* is not portable, use relative path instead"))); | ||
| auto errStr = streamRedirect.GetErrorString(); | ||
| EXPECT_TRUE(regex_search(errStr, regex("warning csolution: absolute path .* is not portable, use relative path instead"))); | ||
| } |
e930e74 to
0f876d0
Compare
0f876d0 to
8f6da04
Compare
Investigating failing test case
https://github.com/Open-CMSIS-Pack/devtools/actions/runs/15009141329/job/42192679789