diff --git a/tests/optimizers/fs2000_3.mod b/tests/optimizers/fs2000_3.mod
index 5efc98d2a4e87b089c3a0ab7b46a1256733d7111..09d2c59a5ed869aaf2d350ba80280fbe2ab9ce6d 100644
--- a/tests/optimizers/fs2000_3.mod
+++ b/tests/optimizers/fs2000_3.mod
@@ -1,5 +1,7 @@
 @#include "fs2000.common.inc"
 
-if exist('fminunc','file')
+% Skip the test under R2009b, because fminunc fails due to Inf value.
+% It remains to be determined in which version it started to work.
+if exist('fminunc','file') && (isoctave || ~matlab_ver_less_than('7.10'))
   estimation(mode_compute=3,order=1, datafile='../fs2000/fsdat_simul', nobs=192, mh_replic=0);
 end