Skip to content

Conversation

t-b
Copy link
Member

@t-b t-b commented Jul 23, 2025

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.

@t-b t-b added this to the Version 1.11 milestone Jul 23, 2025
@t-b t-b self-assigned this Jul 23, 2025
IUTF_Reporting#AddError(str, IUTF_STATUS_ERROR)
break
default:
if(abortCode != 0)
Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member

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.

Copy link
Member Author

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be fixed.

@t-b t-b force-pushed the bugfix/ignored-negative-abort-on-value-values branch 2 times, most recently from ebcc83c to 5d3d41a Compare August 31, 2025 21:24
@t-b t-b requested a review from Garados007 August 31, 2025 21:25
t-b added 2 commits September 1, 2025 16:51
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.
@t-b t-b force-pushed the bugfix/ignored-negative-abort-on-value-values branch from 5d3d41a to 090eb74 Compare September 1, 2025 14:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

3 participants