From 0fe204cc85f23859f3a0847a6302d6e4be14ba5b Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?S=C3=A9bastien=20Villemot?= <sebastien@dynare.org>
Date: Thu, 13 Feb 2020 18:12:10 +0100
Subject: [PATCH] Testsuite: change the seed for some Octave test

Under Octave, the default seed in fs2000ns_uncorr_ME.mod leads to a generated
dataset that makes fs2000ns_corr_ME.mod and fs2000ns_corr_ME_missing.mod
fail (due to a large difference between univariate and multivariate diffuse
filters).

(cherry picked from commit 633f1ad85a8974c9e9709e038214349557f5e69a)
---
 tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod b/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod
index b16a37dfff..61072d20f5 100644
--- a/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod
+++ b/tests/kalman/likelihood_from_dynare/fs2000ns_uncorr_ME.mod
@@ -1,5 +1,12 @@
 @#include "fs2000ns_model.inc" 
 
+% Under Octave, the default seed leads to a generated dataset that makes
+% fs2000ns_corr_ME.mod and fs2000ns_corr_ME_missing.mod fail (due to a large
+% difference between univariate and multivariate diffuse filters).
+if isoctave
+    set_dynare_seed(2);
+end
+
 stoch_simul(periods=200, order=1,irf=0);
 temp=oo_.endo_simul;
 %add measurement error
-- 
GitLab