[Tools] testbot: Document WineTestBot::Log::SetupRedirects().

Francois Gouget fgouget at codeweavers.com
Mon Oct 2 20:26:50 CDT 2017


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/lib/WineTestBot/Log.pm | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/testbot/lib/WineTestBot/Log.pm b/testbot/lib/WineTestBot/Log.pm
index 4b1d35e1..7abf2cb7 100644
--- a/testbot/lib/WineTestBot/Log.pm
+++ b/testbot/lib/WineTestBot/Log.pm
@@ -58,6 +58,17 @@ sub LogMsg(@)
   print $logfile scalar localtime, " ", $logprefix, "[$$]: ", @_ if ($logfile);
 }
 
+=pod
+=over 12
+
+=item C<SetupRedirects()>
+
+This redirects stderr so it writes to our log. This is typically called before
+exec()-ing external tools so their error messages are not lost.
+
+=back
+=cut
+
 sub SetupRedirects()
 {
   if (defined $logfile)
-- 
2.14.1




More information about the wine-patches mailing list