Description: Do not use STDIN/STDOUT redirection for input/output file
 Use the documented --output option for output filename, rather than relying
 on the redirection of input/ouput.
 .
 This issue was revealed after changes to libxml-parser-perl (see bug report
 below) to address its use of 2-argument open().
Author: Nick Morrott <knowledgejunkie@gmail.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=923223
Applied-Upstream: https://github.com/XMLTV/xmltv/commit/5463cde27030237d79fedd200e49968edaa06f67
Last-Update: 2019-03-01
---
--- a/t/test_tv_imdb.t
+++ b/t/test_tv_imdb.t
@@ -84,9 +84,9 @@
     my $output="$tmpDir/".File::Basename::basename($input)."-output.xml";
 
     # Make temporary directory and split into it.
-    my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1";
+    my $cmd="$cmds_dir/tv_imdb --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1";
     if ( $input=~m/movies-only/ ) {
-	$cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot < $input > '$output' 2>&1";
+	$cmd="$cmds_dir/tv_imdb --movies-only --quiet --imdbdir '$tmpDir' --with-keywords --with-plot --output '$output' '$input' 2>&1";
     }
     #print STDERR "\nRUN:$cmd\n";
     my $r = system($cmd);
