[vector] Test infrastructure improvements

Paul Sandoz paul.sandoz at oracle.com
Fri Jun 1 15:33:30 UTC 2018


+1

I frequently get the order of the actual and expected arguments mixed up (since junit and testng have different orders, and i can never seem to remember it).

Paul.

> On May 31, 2018, at 5:19 PM, Lupusoru, Razvan A <razvan.a.lupusoru at intel.com> wrote:
> 
> Hi everyone,
> 
> I would like to contribute a few small changes to Vector API test infrastructure:
> 
> -          Increase default loop iteration count from 10 to 100. We found that 10 is too low and sometimes we cannot reliably reproduce issue
> 
> -          Add more verbosity when exception is thrown for test failures that actually shows the input that caused problem
> 
> -          Swap assertEquals arguments since it appears that contrary to junit, testng has first argument as actual and second argument as expected. We were passing the intrinsic result as expected and scalar computation result as actual. This patch swaps them so that scalar result is the "expected" value.
> 
> http://cr.openjdk.java.net/~rlupusoru/panama/webrev_testfixes_00/
> 
> Thanks,
> Razvan
> 



More information about the panama-dev mailing list