[Pkg-octave-commit] [octave-tsa] 01/02: d/check.m: Prevent use of Java AWT dialogs, avoiding crash of unit test

Rafael Laboissière rlaboiss-guest at moszumanska.debian.org
Fri May 1 23:18:58 UTC 2015


This is an automated email from the git hooks/post-receive script.

rlaboiss-guest pushed a commit to branch master
in repository octave-tsa.

commit 681a03ed0abcb72c32b7405f32034c932762a747
Author: Rafael Laboissiere <rafael at laboissiere.net>
Date:   Fri May 1 19:04:06 2015 -0300

    d/check.m: Prevent use of Java AWT dialogs, avoiding crash of unit test
---
 debian/check.m | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/debian/check.m b/debian/check.m
index 5c83b96..3bab41a 100644
--- a/debian/check.m
+++ b/debian/check.m
@@ -1,5 +1,11 @@
 figure (1, "visible", "off");
 
+### Override the core function usejava, in order to prevent
+### graphical dialogs using the AWT toolkit
+function retval = usejava (x)
+  retval = 0;
+endfunction
+
 global demos
 global count
 

-- 
Alioth's /home/groups/pkg-octave/bin/git-commit-notice on /srv/git.debian.org/git/pkg-octave/octave-tsa.git



More information about the Pkg-octave-commit mailing list