diff --git a/tests/nonlinearsolvers.m b/tests/nonlinearsolvers.m index 8c4cfc1e6829985e56e522413c57747e89080c0e..1003702d1ef17e13528d23ef1cc53fd4b952754b 100644 --- a/tests/nonlinearsolvers.m +++ b/tests/nonlinearsolvers.m @@ -50,7 +50,6 @@ objfun = { @rosenbrock, @broydenbanded }; % FIXME block_trust_region (mex) or trust_region (matlab) do not work for all n (not sure we can fix that). -% FIXME block_trust_region (mex) and trust_region (matlab) do not behave the same (spurious convergence for powell2 and trigonometric with block_trust_region). % % Test mex routine @@ -82,6 +81,14 @@ for i=1:length(objfun) dprintf('Nonlinear solver is expected to fail on %s function but did not return an error.', func2str(objfun{i})) end end + elseif isequal(func2str(objfun{i}), 'trigonometric') + % FIXME block_trust_region (mex) fails, with exit code equal to 4, but not trust_region (matlab). Would be nice to undertsand the difference. + if ~errorflag + testFailed = testFailed+1; + if debug + dprintf('Nonlinear solver is expected to fail on %s function but did not return an error.', func2str(objfun{i})) + end + end else if errorflag || norm(objfun{i}(x))>tolf testFailed = testFailed+1;