From c4a4e6eeb3a443d19a2045e31e82796b6f9ba1b1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Wed, 7 May 2014 10:42:28 +0200
Subject: [PATCH] Octave testsuite: force gnuplot toolkit for text graphics.

This is necessary since FLTK is now the default toolkit in octave 3.8.
---
 tests/run_test_octave.m | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

diff --git a/tests/run_test_octave.m b/tests/run_test_octave.m
index fb67fd5f7d..b78e25ee58 100644
--- a/tests/run_test_octave.m
+++ b/tests/run_test_octave.m
@@ -1,4 +1,4 @@
-## Copyright (C) 2009-2012 Dynare Team
+## Copyright (C) 2009-2014 Dynare Team
 ##
 ## This file is part of Dynare.
 ##
@@ -31,9 +31,8 @@ if !strcmp(dynare_version(), getenv("DYNARE_VERSION"))
 endif
 
 ## Ask gnuplot to create graphics in text mode
-## Note that setenv() was introduced in Octave 3.0.2, for compatibility
-## with MATLAB
-putenv("GNUTERM", "dumb")
+graphics_toolkit gnuplot;
+setenv("GNUTERM", "dumb");
 
 ## Test MOD files listed in Makefile.am
 name = getenv("FILESTEM");
-- 
GitLab