Mercurial > octave
comparison scripts/image/imfinfo.m @ 21575:bc9aa534bc29
maint: Clean up BIST tests so they don't produce warnings.
* data.cc (Fhorzcat): Temporarily disable "num-to-str" warning for BIST tests.
* luinc.cc (__luinc__): Move BIST tests to luinc.m.
* luinc.m: Add BIST tests for luinc.
* regexp.cc (Fregexp): Temporarily disable "regexp-lookbehind-limit" for BIST
tests.
* sqrtm.cc (Fsqrtm): Temporarily disable "sqrtm:SingularMatrix" for BIST tests.
* __eigs__.cc, __init_fltk__.cc, __init_gnuplot__.cc: Add 'assert (1)'
BIST test to mark internal functions as tested.
* ov-range.cc (Fallow_noninteger_range_as_index: Temporarily disable
"deprecated-syntax" for BIST tests.
* quadv.m: Temporarily disable "divide-by-zero" warning for BIST tests.
* imfinfo.m: Temporarily disable "GraphicsMagic-Quantum-Depth" for BIST tests.
author | Rik <rik@octave.org> |
---|---|
date | Fri, 01 Apr 2016 13:56:09 -0700 |
parents | f7f97d7e9294 |
children | ffad2baa90f7 |
comparison
equal
deleted
inserted
replaced
21574:ae4d7dfea337 | 21575:bc9aa534bc29 |
---|---|
157 error ("imfinfo: EXT must be a string"); | 157 error ("imfinfo: EXT must be a string"); |
158 endif | 158 endif |
159 info = imageIO ("imfinfo", @__imfinfo__, "info", filename, varargin{:}); | 159 info = imageIO ("imfinfo", @__imfinfo__, "info", filename, varargin{:}); |
160 endfunction | 160 endfunction |
161 | 161 |
162 ## This test is the same as the similar one in imread. imfinfo must check | 162 ## This test is the same as the similar one in imread. imfinfo must check |
163 ## if file exists before calling __imfinfo_. This test confirm this. | 163 ## if file exists before calling __imfinfo_. This BIST test confirms this. |
164 %!testif HAVE_MAGICK | 164 %!testif HAVE_MAGICK |
165 %! warning ("off", "Octave:GraphicsMagic-Quantum-Depth", "local"); | |
165 %! fmt = fmt_ori = imformats ("jpg"); | 166 %! fmt = fmt_ori = imformats ("jpg"); |
166 %! fmt.info = @true; | 167 %! fmt.info = @true; |
167 %! error_thrown = false; | 168 %! error_thrown = false; |
168 %! imformats ("update", "jpg", fmt); | 169 %! imformats ("update", "jpg", fmt); |
169 %! unwind_protect | 170 %! unwind_protect |