Checkout
Julian Foad
committed
on 07 Jan
Make random-input mergeinfo tests repeatable.

The pseudo-random sequence used in each random-input mergeinfo test is now
repeatable and ind… Show more
Make random-input mergeinfo tests repeatable.

The pseudo-random sequence used in each random-input mergeinfo test is now

repeatable and independent of other tests.

This ensures the test results are repeatable and avoids occasional

unexpected pass of expected-fail tests.

For issue #4840, "Merge assertion failure in svn_sort__array_insert".

* subversion/tests/libsvn_subr/mergeinfo-test.c

 (rand_less_than): Use a passed-in state ('seed').

 (rangelist_random_non_validated,

  rangelist_random_semi_canonical,

  rangelist_random_canonical,

  mergeinfo_random_non_validated): Pass through the state.

 (test_rangelist_merge_random_canonical_inputs,

  test_rangelist_merge_random_canonical_inputs,

  test_rangelist_merge_random_semi_c_inputs,

  test_mergeinfo_merge_random_non_validated_inputs):

   Keep random state separately in each test.

Show less