On Sat, Jun 11, 2022 at 04:30:42PM +0200, Ralf Hemmecke wrote:
> Hmmm, it seems that the unittest.spad is not really something that works
> nicely if there are testLibraryError calls to be tested.
>
> I just figured out that if I have foo.input (see attachment), then the
> output will be (see below), i.e. the B tests are never executed.
Yes. AFAICS the unittest code really does not catch error, instead
depends on toplevel intepreter loop to restart test script at next
toplevel construct. Probaby similar problem appears when there are
fatal tests. We probably should implement this part of unittest
differently, to catch errors. More preciesly, we need function
'catch_all_errors' (or maybe 'ignore_errors') that executes code
(function) catching all errors.
--
Waldek Hebisch