Mercurial > octave
changeset 26028:8eb4b42771ff
savefig.m: Modify BIST test to use a temporary directory (bug #54955).
* savefig.m: Modify %!warning test to use tempname().
author | Rik <rik@octave.org> |
---|---|
date | Sun, 04 Nov 2018 14:25:08 -0800 |
parents | 98d7a111786a |
children | 700b9f046538 |
files | scripts/plot/util/savefig.m |
diffstat | 1 files changed, 3 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/savefig.m Fri Nov 17 11:03:30 2017 +0100 +++ b/scripts/plot/util/savefig.m Sun Nov 04 14:25:08 2018 -0800 @@ -119,7 +119,9 @@ %!warning <unrecognized option 'foobar'> %! unwind_protect %! h = figure ("visible", "off"); -%! savefig (h, "myfig.fig", "foobar"); +%! ftmp = [tempname() ".fig"]; +%! savefig (h, ftmp, "foobar"); %! unwind_protect_cleanup %! close (h); +%! unlink (ftmp); %! end_unwind_protect