comparison smtp.t @ 9:f772e2a1a13f

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 10 Sep 2008 17:41:04 +0400
parents 9eb509695651
children d4b74207a627
comparison
equal deleted inserted replaced
8:a58a62e9d695 9:f772e2a1a13f
11 11
12 use Test::More tests => 28; 12 use Test::More tests => 28;
13 13
14 use MIME::Base64; 14 use MIME::Base64;
15 use Socket qw/ CRLF /; 15 use Socket qw/ CRLF /;
16
17 BEGIN { use FindBin; chdir($FindBin::Bin); }
16 18
17 use _common; 19 use _common;
18 20
19 ############################################################################### 21 ###############################################################################
20 22