Hi All,<div><br></div><div> if I want to run through a complex test that tests a number of combinations, some of which have failures, its convenient to wrap the test in an exception handler for TestFailure and run the tests resuming on each failure. But I can't because TestFaiure isn't resumable. Any good reason why?</div>
<div><br></div><div>e.g. I'm currently testing the generation of a divide/remainder routine for the x86 where I'm enumerating over many combinations of register quads, dividend, divisor, quotient, remainder, and I'd like to do the following to count how many failures I'm getting with each tweak of the register juggling code:</div>
<div><br></div><div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span> | count |</div><div><span class="Apple-tab-span" style="white-space: pre; ">        </span> count := 0.</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> [CogIA32CompilerTests new testDivQuoRem]</div>
<div><span class="Apple-tab-span" style="white-space:pre">                </span>on: TestResult failure</div><div><span class="Apple-tab-span" style="white-space:pre">                </span>do: [:ex| count := count + 1. ex resume].</div><div><span class="Apple-tab-span" style="white-space:pre">        </span> count</div>
</div>