octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #39791] imwrite error


From: Carnë Draug
Subject: [Octave-bug-tracker] [bug #39791] imwrite error
Date: Sat, 17 Aug 2013 16:21:28 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130626 Firefox/17.0 Iceweasel/17.0.7

Update of bug #39791 (project octave):

                  Status:                    None => Fixed                  
             Open/Closed:                    Open => Closed                 

    _______________________________________________________

Follow-up Comment #2:

Thank you for the report and the tests. The bug was caused by a really stupid
thing I done. It is fixed now. All the 9 tests we had in imwrite are for
failures so when I actually broke something the tests were useless.

But I'll be applying a slightly different patch, one that only runs if
octave's been configured to deal with images, and with a unwind_protect to
make sure the file is removed for sure, no matter what happens during the
reading and writing.


%!testif HAVE_MAGICK
%! imw = randi (255, 100, "uint8");
%! filename = [tmpnam() ".png"];
%! unwind_protect
%!   imwrite (imw, filename);
%!   imr = imread (filename);
%! unwind_protect_cleanup
%!   unlink (filename);
%! end_unwind_protect
%! assert (imw, imr)


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39791>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]