# HG changeset patch # User Maxim Dounin # Date 1221054064 -14400 # Node ID f772e2a1a13fba99c1718b89acfff922bcbc0a99 # Parent a58a62e9d695363d114e833faa23ecba622656b4 Tests: change directory to allow runing from outside. Use FindBin to find out where tests reside and chdir() into it. This allows to use configs from the directory with tests and to use _common.pm. diff --git a/smtp.t b/smtp.t --- a/smtp.t +++ b/smtp.t @@ -14,6 +14,8 @@ use Test::More tests => 28; use MIME::Base64; use Socket qw/ CRLF /; +BEGIN { use FindBin; chdir($FindBin::Bin); } + use _common; ############################################################################### diff --git a/ssi-include-big.t b/ssi-include-big.t --- a/ssi-include-big.t +++ b/ssi-include-big.t @@ -11,6 +11,8 @@ use strict; use Test::More tests => 3; +BEGIN { use FindBin; chdir($FindBin::Bin); } + use _common; ###############################################################################