From a5e72c7526cc582c09888c6bb4c495ceeafb1459 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Wed, 26 Dec 2012 21:26:57 -0500 Subject: [PATCH 1/2] rm commented code --- t/tt_plugin_lite_app.t | 2 -- 1 file changed, 2 deletions(-) diff --git a/t/tt_plugin_lite_app.t b/t/tt_plugin_lite_app.t index 6735752..dfd501d 100644 --- a/t/tt_plugin_lite_app.t +++ b/t/tt_plugin_lite_app.t @@ -6,8 +6,6 @@ use strict; use warnings; BEGIN { - #use if $^O ne 'MSWin32', POSIX => qw/setlocale LC_ALL/; - #setlocale(&LC_ALL, 'C') if $^O ne 'MSWin32'; unless($^O eq 'MSWin32') { eval q{ use POSIX qw( setlocale LC_ALL ); From 3ec7366d6e55faeec117a14bd09dcb29ffbb65a1 Mon Sep 17 00:00:00 2001 From: Graham Ollis Date: Wed, 26 Dec 2012 21:56:21 -0500 Subject: [PATCH 2/2] better diagnostics use filename and linenumber in eval for better diagnostic in test --- t/tt_plugin_lite_app.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/t/tt_plugin_lite_app.t b/t/tt_plugin_lite_app.t index dfd501d..11d89bd 100644 --- a/t/tt_plugin_lite_app.t +++ b/t/tt_plugin_lite_app.t @@ -7,7 +7,7 @@ use warnings; BEGIN { unless($^O eq 'MSWin32') { - eval q{ + eval '# line '. __LINE__ . ' "' . __FILE__ . qq("\n). q{ use POSIX qw( setlocale LC_ALL ); setlocale(LC_ALL, 'C'); };