From 100ff94644b4b17b3e29bc6b584167aceb5daff6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?St=C3=A9phane=20Adjemian=20=28Charybdis=29?= Date: Tue, 28 Feb 2012 10:13:34 +0100 Subject: [PATCH] Fixed bug related to the path to the testes routine. --- matlab/utilities/tests/dynTest.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/matlab/utilities/tests/dynTest.m b/matlab/utilities/tests/dynTest.m index d055ef0d2..fdb530b56 100644 --- a/matlab/utilities/tests/dynTest.m +++ b/matlab/utilities/tests/dynTest.m @@ -52,10 +52,12 @@ function dynTest(fun,dynare_path) original_directory = pwd(); -cd([dynare_path filesep '..' filesep 'tests']); - [pathstr1, name1, ext1] = fileparts(fun); +pathstr1 = [original_directory filesep pathstr1]; + +cd([dynare_path filesep '..' filesep 'tests']); + mex_flag = 0; if exist(name1)==3 mex_flag = 1;