Skip to content

Commit

Permalink
Merge pull request #2087 from AllenInstitute/bugfix/2087-avoid-warn-o…
Browse files Browse the repository at this point in the history
…utput-in-tests

UTF_AsynFrameworkTest.ipf: Correct out-of-order check
  • Loading branch information
t-b authored Apr 17, 2024
2 parents bde7282 + 0690ecf commit 093e360
Showing 1 changed file with 4 additions and 18 deletions.
22 changes: 4 additions & 18 deletions Packages/tests/Basic/UTF_AsynFrameworkTest.ipf
Original file line number Diff line number Diff line change
Expand Up @@ -732,15 +732,8 @@ static Function TASYNC_RunOrderless()
endfor
CHECK(!timeout)

if(!timeout)
// There are chances the result is still in Order, so we give only a Warning
for(i = 0; i < WORK_COUNT_GENERIC; i += 1)
if(returnOrder[i] != i)
WARN(0)
break
endif
endfor
endif
Make/FREE/N=(WORK_COUNT_GENERIC) inOrder = p
CHECK_NEQ_VAR(EqualWaves(returnOrder, inOrder, EQWAVES_DATA), 1)

ASYNC_Stop(timeout = 1)
End
Expand Down Expand Up @@ -963,15 +956,8 @@ static Function TASYNC_OrderlessDirectStop()
timeout = ASYNC_Stop(timeout = THREADING_TEST_TIMEOUT)
CHECK(!timeout)

if(!timeout)
// There are chances the result is still in Order, so we give only a Warning
for(i = 0; i < WORK_COUNT_GENERIC; i += 1)
if(returnOrder[i] != i)
WARN(0)
break
endif
endfor
endif
Make/FREE/N=(WORK_COUNT_GENERIC) inOrder = p
CHECK_NEQ_VAR(EqualWaves(returnOrder, inOrder, EQWAVES_DATA), 1)
End

#ifndef THREADING_DISABLED
Expand Down

0 comments on commit 093e360

Please sign in to comment.