Skip to content

Commit

Permalink
Merge pull request #370 from byte-physics/mb/fix/367-info-in-abort-an…
Browse files Browse the repository at this point in the history
…d-rte

Fix: INFO() for Aborts and RTEs
  • Loading branch information
Garados007 authored Jan 4, 2023
2 parents eb5f516 + f592a75 commit 4175fe1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions procedures/unit-testing-basics.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,7 @@ static Function EvaluateRTE(err, errmessage, abortCode, funcName, funcType, proc
DFREF dfr = GetPackageFolder()
SVAR/SDFR=dfr message
SVAR/SDFR=dfr type
SVAR/SDFR=dfr/Z AssertionInfo
string str, funcTypeString

if(!err && !abortCode)
Expand Down Expand Up @@ -1503,6 +1504,9 @@ static Function EvaluateRTE(err, errmessage, abortCode, funcName, funcType, proc
endif

ReportError(message)
if(SVAR_Exists(AssertionInfo) && strlen(AssertionInfo))
ReportError(AssertionInfo, incrErrorCounter = 0)
endif

CheckAbortCondition(abortCode)
if(TAP_IsOutputEnabled())
Expand Down

0 comments on commit 4175fe1

Please sign in to comment.