[omd-commits] OMD Git: omd: tests: added missing lib path

git version control git at mathias-kettner.de
Sat Dec 18 18:25:16 CET 2010


Module: omd
Branch: master
Commit: 94a3f7c7bfd989262f4f041ec34bebd4434c6b90
URL:    http://omdistro.org/projects/omd/repository/revisions/94a3f7c7bfd989262f4f041ec34bebd4434c6b90

Author: Sven Nierlein <sven at nierlein.de>
Date:   Sat Dec 18 18:24:43 2010 +0100

tests: added missing lib path

---

 t/02-test_utils.t |    2 ++
 t/TestUtils.pm    |    2 +-
 2 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/t/02-test_utils.t b/t/02-test_utils.t
index fb99d92..9853184 100644
--- a/t/02-test_utils.t
+++ b/t/02-test_utils.t
@@ -8,6 +8,8 @@ BEGIN {
     use lib('t');
     require TestUtils;
     import TestUtils;
+    use FindBin;
+    use lib "$FindBin::Bin/lib/lib/perl5";
 }
 
 plan( tests => 11 );
diff --git a/t/TestUtils.pm b/t/TestUtils.pm
index e3510bb..9c295e7 100644
--- a/t/TestUtils.pm
+++ b/t/TestUtils.pm
@@ -389,7 +389,7 @@ sub _get_url {
 }
 
 END {
-    if($omd_symlink_created == 1) {
+    if(defined $omd_symlink_created and $omd_symlink_created == 1) {
         unlink('/omd');
     }
 };



More information about the omd-commits mailing list