CMake/Tests/FindMatlab/cmake_matlab_unit_tests_timeout.m
Raffi Enficiaud 49c8dcf7bb FindMatlab: Rewrite module and provide a usage API
Implement a brand new FindMatlab module:

- Add support for versions and components.
- Find Matlab and its version in a more precise and multiplatform way.
- Add API to create a new mex extension with documentation.
- Add API to add matlab unit tests (with or without the unit test framework).
- Find as much as possible based on a single Matlab_ROOT_DIR cache entry
  and allow the user to change it to re-find everything.
2015-03-17 09:47:04 -04:00

17 lines
383 B
Matlab

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