diff --git a/htdocs/compta/bank/pre.inc.php b/htdocs/compta/bank/pre.inc.php
index 013dae99335..166d3c142e8 100644
--- a/htdocs/compta/bank/pre.inc.php
+++ b/htdocs/compta/bank/pre.inc.php
@@ -24,7 +24,7 @@
* \brief Fichier gestionnaire du menu compta banque
*/
-require_once("../../main.inc.php");
+require_once(realpath(dirname(__FILE__)) . "/../../main.inc.php");
require_once(DOL_DOCUMENT_ROOT."/compta/bank/class/account.class.php");
$langs->load("banks");
diff --git a/htdocs/ftp/pre.inc.php b/htdocs/ftp/pre.inc.php
index 84c9f1326dc..2fd4c498d2d 100644
--- a/htdocs/ftp/pre.inc.php
+++ b/htdocs/ftp/pre.inc.php
@@ -21,7 +21,7 @@
* \brief File to manage left menu for FTP module
*/
-require ("../main.inc.php");
+require (realpath(dirname(__FILE__)) . "/../main.inc.php");
$user->getrights('ecm');
diff --git a/test/phpunit/hudson_phpunittest.xml b/test/phpunit/hudson_phpunittest.xml
index ffb82b0bb0e..651deb315a3 100644
--- a/test/phpunit/hudson_phpunittest.xml
+++ b/test/phpunit/hudson_phpunittest.xml
@@ -52,6 +52,8 @@
../../test/
../../htdocs/boutique/
../../htdocs/compta/paiement/cheque/
+ ../../htdocs/compta/bank/
+ ../../htdocs/ftp/
../../htdocs/core/filemanagerdol/
../../htdocs/custom/
../../htdocs/products/canvas/