Skip to content

Commit 4175fe1

Browse files
authored
Merge pull request #370 from byte-physics/mb/fix/367-info-in-abort-and-rte
Fix: INFO() for Aborts and RTEs
2 parents eb5f516 + f592a75 commit 4175fe1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

procedures/unit-testing-basics.ipf

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1446,6 +1446,7 @@ static Function EvaluateRTE(err, errmessage, abortCode, funcName, funcType, proc
14461446
DFREF dfr = GetPackageFolder()
14471447
SVAR/SDFR=dfr message
14481448
SVAR/SDFR=dfr type
1449+
SVAR/SDFR=dfr/Z AssertionInfo
14491450
string str, funcTypeString
14501451

14511452
if(!err && !abortCode)
@@ -1503,6 +1504,9 @@ static Function EvaluateRTE(err, errmessage, abortCode, funcName, funcType, proc
15031504
endif
15041505

15051506
ReportError(message)
1507+
if(SVAR_Exists(AssertionInfo) && strlen(AssertionInfo))
1508+
ReportError(AssertionInfo, incrErrorCounter = 0)
1509+
endif
15061510

15071511
CheckAbortCondition(abortCode)
15081512
if(TAP_IsOutputEnabled())

0 commit comments

Comments
 (0)