summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--t/11mimeinfo.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/11mimeinfo.t b/t/11mimeinfo.t
index 01a19ea..c1d3298 100644
--- a/t/11mimeinfo.t
+++ b/t/11mimeinfo.t
@@ -16,10 +16,11 @@ if (!File::MimeInfo::has_mimeinfo_database()) {
my $empty_dir = File::Temp::tempdir();
-my $mimetype_file = File::Spec->catfile($Bin, '..', 'mimetype');
+my $mimetype_file = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin/mimetype' : File::Spec->catfile($Bin, '..', 'mimetype');
+my $mimeopen_file = $ENV{AUTOPKGTEST_TMP} ? '/usr/bin/mimeopen' : File::Spec->catfile($Bin, '..', 'mimeopen');
my %tests = (
- 'mimeopen', 'application/x-perl',
+ $mimeopen_file, 'application/x-perl',
't/test.png', 'image/png',
);