Fix NREs in SuspendStoppingPipeline() and RestoreStoppingPipeline()#11870
Conversation
|
Can we add a regression test? |
Repo steps in original issue are too expensive/tricky. I don't know how create simple test. |
|
@iSazonov I agree. The original repro is too complex. It is unusual to not have a running pipeline and runspace, but engine events is one case. Another case might be Action script blocks on debugger breakpoints, but I don't think it is worth searching for another repro. |
|
Hi guys, I don't know what are your rules/policies in terms of regression tests when it comes to starting child shell in tests, but if that would not be an issue then what about a test like that : would that be of any use ? |
|
We have quite a few tests that start child shells, so that shouldn't be an issue I wouldn't think. Thanks for putting that together! 💖 It might be a good idea to output the exception details rather than just a string, but that's a very good start, thanks! |
|
@iSazonov can you please check if that test prototype can be integrated to this PR? Thank you. |
|
Test was added. |
|
🎉 Handy links: |
PR Summary
Fix #11869
PR Context
PR Checklist
.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.