changeset 22271:16efd0403698

Add %!error test pattern matches for disabled optional features * fftw.cc: Add regex to failing %!error tests when FFTW is not enabled. * xzip.cc: Add regex to failing %!error tests when bzip2 is not enabled.
author Mike Miller <mtmiller@octave.org>
date Thu, 11 Aug 2016 10:42:26 -0700
parents 2c7acd39e9b7
children 1c840b2fd337
files libinterp/dldfcn/fftw.cc libinterp/dldfcn/xzip.cc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/dldfcn/fftw.cc	Thu Aug 11 09:56:12 2016 -0700
+++ b/libinterp/dldfcn/fftw.cc	Thu Aug 11 10:42:26 2016 -0700
@@ -372,8 +372,8 @@
 %!   fftw ("threads", n);
 %! end_unwind_protect
 
-%!error <Invalid call to fftw> fftw ()
-%!error <Invalid call to fftw> fftw ("planner", "estimate", "measure")
+%!error <Invalid call to fftw|was unavailable or disabled> fftw ()
+%!error <Invalid call to fftw|was unavailable or disabled> fftw ("planner", "estimate", "measure")
 %!error fftw (3)
 %!error fftw ("invalid")
 %!error fftw ("planner", "invalid")
--- a/libinterp/dldfcn/xzip.cc	Thu Aug 11 09:56:12 2016 -0700
+++ b/libinterp/dldfcn/xzip.cc	Thu Aug 11 10:42:26 2016 -0700
@@ -568,7 +568,7 @@
 /*
 %!error gzip ()
 %!error gzip ("1", "2", "3")
-%!error <FILES must be a character array or cellstr> gzip (1)
+%!error <FILES must be a character array or cellstr|was unavailable or disabled> gzip (1)
 */
 
 DEFUN_DLD (bzip2, args, ,