changeset 25095:71ed409b2ffb stable

Change lu BIST test to use testif HAVE_UMFPACK. * lu.cc: Change %!warning test to use %!testif HAVE_UMFPACK and fail() so that it is only executed when UMFPACK was compiled in.
author Rik <rik@octave.org>
date Mon, 02 Apr 2018 17:26:38 -0700
parents c0d48cfbb59a
children 7e04ddd963a9 cc21f66ecb1c
files libinterp/corefcn/lu.cc
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/lu.cc	Mon Apr 02 15:57:09 2018 -0700
+++ b/libinterp/corefcn/lu.cc	Mon Apr 02 17:26:38 2018 -0700
@@ -552,8 +552,8 @@
 %! assert (P'*L*U*Q', B);
 
 %!error lu ()
-%!warning <function may fail>
-%! [l,u] = lu (sparse (magic (3)));
+%!testif HAVE_UMFPACK
+%! fail ("[l,u] = lu (sparse (magic (3)))", "warning", "function may fail");
 %!error <can not define pivoting threshold> lu ([1, 2; 3, 4], 2)
 
 */