Skip to content
  • Clemens Buchacher's avatar
    FindMatlab: always handle uncaught exception · 44c916b4
    Clemens Buchacher authored and Raffi Enficiaud's avatar Raffi Enficiaud committed
    If runtests('$unittest_file') throws an exception it is ignored. It is
    easy to produce such an exception by passing a nonexistent file as
    UNITTEST_FILE.
    
    We already handle exceptions if the option NO_UNITTEST_FRAMEWORK is set.
    Use the same method to handle exceptions thrown by runtests or by a
    custom_Matlab_test_command.
    
    Fixes #16660.
    44c916b4