From c52c22098fbad2b328e4b4e1d5f10ee03fae4392 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Tue, 14 Jan 2020 11:43:51 +0100
Subject: [PATCH] MATLAB compatibility fix: skip identification/kim/kim2.mod
 test under R2009b

MATLAB crashes, most likely due to an internal bug.

(cherry picked from commit c5f50a34e2b144a9339a5e6b160345bdc37572df)
---
 tests/identification/kim/kim2.mod | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/identification/kim/kim2.mod b/tests/identification/kim/kim2.mod
index 172a8fa3f1..a7992a3581 100644
--- a/tests/identification/kim/kim2.mod
+++ b/tests/identification/kim/kim2.mod
@@ -60,6 +60,11 @@ dumpy ,uniform_pdf, , ,0,10;
 end;
 
 varobs c i;
+
+/* Skip test under MATLAB R2009b
+   MATLAB crashes, most likely due to an internal bug */
+if isoctave || ~matlab_ver_less_than('7.10')
+
 identification(advanced=1,max_dim_cova_group=3);
 //varobs c i lam; //to check if observing lam identifies phi and theta
 //identification(ar=1,advanced=1,max_dim_cova_group=3,prior_mc=250);
@@ -68,3 +73,5 @@ identification(advanced=1,max_dim_cova_group=3);
 
 estim_params_=[]; 
 identification(advanced=1,max_dim_cova_group=3);
+
+end
-- 
GitLab