changeset 31259:e39634a768e7

qr.cc: Run test with sparse input only if built with necessary libraries (bug #63069). * libinterp/corefcn/qr.cc: Skip test if Octave was built without necessary libraries for sparse input for qr.
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 05 Oct 2022 10:55:13 +0200
parents 473ac0a602b9
children c5c8bf50449c
files libinterp/corefcn/qr.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/qr.cc	Wed Oct 05 10:34:31 2022 +0200
+++ b/libinterp/corefcn/qr.cc	Wed Oct 05 10:55:13 2022 +0200
@@ -806,7 +806,7 @@
 %! assert (qr (zeros (1, 0)), zeros (1, 0))
 %! assert (qr (zeros (0, 1)), zeros (0, 1))
 
-%!test <*63069>
+%!testif ; (__have_feature__ ("SPQR") && __have_feature__ ("CHOLMOD")) || __have_feature__ ("CXSPARSE") <*63069>
 %! assert (qr (sparse (0, 0)), sparse (0, 0))
 %! assert (qr (sparse (1, 0)), sparse (1, 0))
 %! assert (qr (sparse (0, 1)), sparse (0, 1))