diff libinterp/corefcn/load-save.cc @ 29020:1db3841f042f

load-save.cc: Run BIST with "-zip" only if HAVE_ZLIB is defined. * load-save.cc (Fsave): Run BIST with "-zip" only if HAVE_ZLIB is defined.
author Markus Mützel <markus.muetzel@gmx.de>
date Wed, 04 Nov 2020 08:40:36 +0100
parents be883573bbcc
children 8a014832f083
line wrap: on
line diff
--- a/libinterp/corefcn/load-save.cc	Tue Nov 03 10:35:32 2020 -0800
+++ b/libinterp/corefcn/load-save.cc	Wed Nov 04 08:40:36 2020 +0100
@@ -1856,10 +1856,11 @@
 %! assert (D, D2);
 
 ## Test input validation
-%!error <-append and -zip options .* with a text format>
+%!testif HAVE_ZLIB
 %! fname = tempname ();
 %! x = 1;
-%! save ("-append", "-zip", "-binary", fname, "x"); 
+%! fail ('save ("-append", "-zip", "-binary", fname, "x")',
+%!       "-append and -zip options .* with a text format");
 */
 
 DEFMETHOD (crash_dumps_octave_core, interp, args, nargout,