Description: change location of module when run under autopkgtest
Origin: vendor
Forwarded: not needed
Author: gregor herrmann <gregoa@debian.org>
Last-Update: 2015-10-30

--- a/t/synopsis.t
+++ b/t/synopsis.t
@@ -3,11 +3,13 @@
 use FindBin;
 use File::Spec;
 use lib File::Spec->catfile($FindBin::Bin, 'lib');
+use Config;
 
 use Test::More tests => 2;
 
 #------------------------------------------------------------------
-open F, '<', "$FindBin::Bin/../lib/HTML/Truncate.pm"
+my $dir = $ENV{ADTTMP} ? $Config{vendorlib} : "$FindBin::Bin/../lib";
+open F, '<', "$dir/HTML/Truncate.pm"
     or die "Couldn't open self module to read!";
 
 my $synopsis = '';
