-
Notifications
You must be signed in to change notification settings - Fork 2
EvaluteRTE: Correctly report AbortOnValue aborts with negative abort codes #500
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
base: main
Are you sure you want to change the base?
Conversation
procedures/igortest-basics.ipf
Outdated
IUTF_Reporting#AddError(str, IUTF_STATUS_ERROR) | ||
break | ||
default: | ||
if(abortCode != 0) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This can be optimized. Just add a case which checks for 0 and does nothing and move the content of the if statement into the default case directly.
Doing this you have one level of indentation less and no if statement.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good point. But thinking about this again, the dheck for non-zero abort code is not correct either. The abort code can be anything. Fill send a fixed version.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, so the -1, -2, -3 cases can possibly also be AbortOnValue then.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately yes. My idea here is that this is not as likely as the other abort types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should be fixed.
ebcc83c
to
5d3d41a
Compare
Since 649b354 (Remove requirement of allTestCases in main loop returned by getTestCasesMatch, 2022-09-06) we don't have any parameters anymore. Probably only found now because we recently upgraded the sphinx docker image.
…codes We need to assume that all error codes not being -1, -2, -3, -4 are from AbortOnValue as we can't differentiate them. This now correctly reports AbortOnValue aborts with negative abort codes. Broken since a7ab54c (More detailed RTE error message, 2017-03-07). It did not help that the Igor Pro documentation is also wrong in this regard.
5d3d41a
to
090eb74
Compare
We need to assume that all error codes not being -1, -2, -3, -4 are from AbortOnValue as we can't differentiate them. This now correctly reports AbortOnValue aborts with negative abort codes.
Broken since a7ab54c (More detailed RTE error message, 2017-03-07). It did not help that the Igor Pro documentation is also wrong in this regard.