Blob Blame Raw
From db3d47b412b60d1225d2f1c7c8118d467bd2b8ca Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
Date: Mon, 6 Nov 2017 12:26:23 +0100
Subject: [PATCH] Set gettext domain in t/166_cancel_import.t
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

If gettext domain is not set, the test dies with:

$ xvfb-run -a perl -Ilib t/166_cancel_import.t
1..2
Can't call method "get" on an undefined value at lib/Gscan2pdf/Translation.pm line 35.

Signed-off-by: Petr Písař <ppisar@redhat.com>
---
 t/166_cancel_import.t | 1 +
 1 file changed, 1 insertion(+)

diff --git a/t/166_cancel_import.t b/t/166_cancel_import.t
index 7453cdba..474ee612 100644
--- a/t/166_cancel_import.t
+++ b/t/166_cancel_import.t
@@ -9,6 +9,7 @@ BEGIN {
 
 #########################
 
+Gscan2pdf::Translation::set_domain('gscan2pdf');
 use Log::Log4perl qw(:easy);
 Log::Log4perl->easy_init($WARN);
 my $logger = Log::Log4perl::get_logger;
-- 
2.13.6