libtocc test : catch BaseException exception