Skip to content

Commit

Permalink
print.m: Run new test only with graphics toolkit "qt" (bug #64510).
Browse files Browse the repository at this point in the history
* scripts/plot/util/print.m: Run test involving printing an invisible figure
only with graphics toolkit "qt".
  • Loading branch information
mmuetzel committed Aug 30, 2023
1 parent 7eda10d commit 899b71c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion scripts/plot/util/print.m
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,9 @@
endfunction

## Print to file with and without file extension
%!test
%!testif ; (have_window_system () && any (strcmp ("qt", available_graphics_toolkits ())))
%! toolkit = graphics_toolkit ();
%! graphics_toolkit ("qt");
%! hf = figure ("visible", "off");
%! unwind_protect
%! x = 0:0.1:1;
Expand All @@ -843,6 +845,7 @@
%! unlink (tmp_name);
%! unwind_protect_cleanup
%! close (hf);
%! graphics_toolkit (toolkit);
%! end_unwind_protect

%!error <a graphics handle>
Expand Down

0 comments on commit 899b71c

Please sign in to comment.