From efa14b2795c953e37b8bf66f128f053903af48bc Mon Sep 17 00:00:00 2001 From: Federico Felici <federico.felici@epfl.ch> Date: Fri, 26 Jul 2019 17:38:19 +0200 Subject: [PATCH] Try/catch for test_expcodes.m --- tests/test_expcodes.m | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/tests/test_expcodes.m b/tests/test_expcodes.m index c7406f1..c1460ff 100644 --- a/tests/test_expcodes.m +++ b/tests/test_expcodes.m @@ -33,10 +33,15 @@ classdef test_expcodes < matlab.unittest.TestCase methods(Test) function test_expcode(testCase) % attempt compiling tcv.slx for this expcode - tcv([],[],[],'compile'); - tcv([],[],[],'term'); + try + tcv([],[],[],'compile'); + tcv([],[],[],'term'); + catch ME + tcv([],[],[],'term'); + rethrow(ME) + end testCase.assertTrue(true); % dummy end end -end \ No newline at end of file +end -- GitLab