summaryrefslogtreecommitdiff
path: root/Tests/FindMatlab/cmake_matlab_unit_tests_timeout.m
blob: 11d5e9ebeb4e49ed71824acb6e84e2cbc542034b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16

classdef cmake_matlab_unit_tests_timeout < matlab.unittest.TestCase
  % timeout tests

  properties
  end

  methods (Test)
    function testCallHangsShouldBeTimedOut(testCase)
      cmake_matlab_mex1(rand(3,3));
      disp('Will now wait.');
      disp('Testing the cmake Matlab package timeout - do not kill');
      pause(20); % supposed to be killed after 15s
    end
  end
end