Changes between Initial Version and Version 2 of Ticket #20617
 Timestamp:
 Nov 9, 2016, 10:14:04 AM (3 years ago)
Legend:
 Unmodified
 Added
 Removed
 Modified

Ticket #20617 – Description
initial v2 1 1 Some unit tests succeed at random with a certain probability, so we need to repeat them a number of times until the failure rate is acceptable. 2 2 3 Typically, we make sure the failure rate is less than the memory bit fliprate.3 Typically, we make sure the failure rate is less than the hardware bit error rate. 4 4 5 5 But we could standardise this, by taking the following inputs: 6 6 * test function with success/fail return value, 7 7 * the probability of success regardless of whether the code actually works, 8 * the desired overall probability of failure by chance (for example, the bit fliprate).8 * the desired overall probability of failure by chance (for example, the bit error rate). 9 9 10 The abstraction would then repeat the test enough times to make sure the failure rate is less than the bit fliprate.10 The abstraction would then repeat the test enough times to make sure the failure rate is less than the bit error rate. 11 11 12 12 We might also want to check that the distribution of returned values is uniform, but I think that's a separate (and more complex) ticket.