PATH=C:\PlatSDK\Bin\Win64\x86\AMD64;C:\PlatSDK\Bin;C:\PlatSDK\Bin\WinNT;C:\cygwin\bin;C:\cpanfly-5.12\var\megalib\bin;C:\Perl64-5.12\site\bin;C:\Perl64-5.12\bin;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\PROGRA~2\Perforce;C:\instantclient_11_2;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WindowsPowerShell\v1.0;C:\PROGRA~2\Perforce;C:\mysql\bin Start 2014-03-21T21:02:18 ActivePerl-1200 CPAN-2.00 LIB=C:\PlatSDK\Lib\AMD64;C:\PlatSDK\Lib\AMD64\atlmfc INCLUDE=C:\PlatSDK\Include;C:\PlatSDK\Include\crt;C:\PlatSDK\Include\crt\sys;C:\PlatSDK\Include\mfc;C:\PlatSDK\Include\atl PATH=C:/CPANFL~1.12/var/libs/bin;C:\PlatSDK\Bin\Win64\x86\AMD64;C:\PlatSDK\Bin;C:\PlatSDK\Bin\WinNT;C:\cygwin\bin;C:\CPANFL~1.12\var\megalib\bin;C:\Perl64-5.12\site\bin;C:\Perl64-5.12\bin;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WINDOW~1\v1.0;C:\PROGRA~2\Perforce;C:\INSTAN~1;C:\cygwin\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\system32\WINDOW~1\v1.0;C:\PROGRA~2\Perforce;C:\mysql\bin Reading 'C:\cpanfly-5.12\var\cpan\Metadata' Database was generated on Sat, 22 Mar 2014 02:29:02 GMT Running make for D/DO/DOY/Try-Tiny-0.20.tar.gz Fetching with LWP: http://cpan.nas1.activestate.com/authors/id/D/DO/DOY/Try-Tiny-0.20.tar.gz Fetching with LWP: http://cpan.nas1.activestate.com/authors/id/D/DO/DOY/CHECKSUMS Checksum for C:\cpanfly-5.12\var\cpan\sources\authors\id\D\DO\DOY\Try-Tiny-0.20.tar.gz ok Try-Tiny-0.20 Try-Tiny-0.20/README Try-Tiny-0.20/Changes Try-Tiny-0.20/LICENSE Try-Tiny-0.20/dist.ini Try-Tiny-0.20/t Try-Tiny-0.20/t/when.t Try-Tiny-0.20/META.yml Try-Tiny-0.20/MANIFEST Try-Tiny-0.20/t/named.t Try-Tiny-0.20/t/basic.t Try-Tiny-0.20/META.json Try-Tiny-0.20/t/context.t Try-Tiny-0.20/t/finally.t Try-Tiny-0.20/Makefile.PL Try-Tiny-0.20/maint Try-Tiny-0.20/maint/bench.pl Try-Tiny-0.20/t/given_when.t Try-Tiny-0.20/t/00-compile.t Try-Tiny-0.20/lib/Try Try-Tiny-0.20/lib/Try/Tiny.pm Try-Tiny-0.20/t/lib Try-Tiny-0.20/t/lib/TryUser.pm Try-Tiny-0.20/xt/release Try-Tiny-0.20/xt/release/eol.t Try-Tiny-0.20/t/erroneous_usage.t Try-Tiny-0.20/xt/release/no-tabs.t Try-Tiny-0.20/xt/release/pod-syntax.t Try-Tiny-0.20/xt/release/pod-coverage.t Try-Tiny-0.20/t/global_destruction_load.t Try-Tiny-0.20/t/global_destruction_forked.t CPAN.pm: Building D/DO/DOY/Try-Tiny-0.20.tar.gz >>> C:\Perl64-5.12\bin\perl.exe Makefile.PL Checking if your kit is complete... Looks good Generating a nmake-style Makefile Writing Makefile for Try::Tiny Writing MYMETA.yml and MYMETA.json >>> nmake Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. cp lib/Try/Tiny.pm blib\lib\Try\Tiny.pm DOY/Try-Tiny-0.20.tar.gz nmake -- OK Running make test >>> nmake test TEST_VERBOSE=1 Microsoft (R) Program Maintenance Utility Version 7.00.8882 Copyright (C) Microsoft Corp 1988-2000. All rights reserved. C:\Perl64-5.12\bin\perl.exe "-MExtUtils::Command::MM" "-MTest::Harness" "-e" "undef *Test::Harness::Switches; test_harness(1, 'blib\lib', 'blib\arch')" t/*.t t/00-compile.t ................. 1..1 ok 1 - Try/Tiny.pm loaded ok ok t/basic.t ...................... 1..25 ok 1 - basic try ok 2 - rethrow ok 3 - try block evaluated ok 4 - $@ untouched ok 5 - try block died ok 6 - $@ untouched ok 7 - catch block evaluated ok 8 - $@ untouched ok 9 - scalar context try ok 10 - list context try ok 11 - scalar context catch ok 12 - list context catch ok 13 - Checking catch subroutine scalar reference is correctly blessed ok 14 - Checking finally subroutine scalar reference is correctly blessed ok 15 ok 16 - got here ok 17 - try in try catch block ok 18 - rethrow with try in catch block ok 19 - catch invoked not ok 20 # TODO i don't think we can ever make this work sanely, maybe with SIG{__DIE__} # Failed (TODO) test at t/basic.t line 137. # '' # doesn't match '(?-xism:foo)' ok 21 - $@ untouched ok 22 - $_ untouched ok 23 - previous value of $@ ok 24 - previous value of $@ available for capture ok 25 - previous value of $@ also available in catch block ok t/context.t .................... 1..25 ok 1 - Proper context LIST in try{} ok 2 - Proper VOID context in finally{} 2 ok 3 - Proper VOID context in finally{} 1 ok 4 ok 5 - Proper context LIST in try{} ok 6 - Proper context LIST in catch{} ok 7 - Proper VOID context in finally{} 2 ok 8 - Proper VOID context in finally{} 1 ok 9 ok 10 - Proper context SCALAR in try{} ok 11 - Proper VOID context in finally{} 2 ok 12 - Proper VOID context in finally{} 1 ok 13 ok 14 - Proper context SCALAR in try{} ok 15 - Proper context SCALAR in catch{} ok 16 - Proper VOID context in finally{} 2 ok 17 - Proper VOID context in finally{} 1 ok 18 ok 19 - Proper context VOID in try{} ok 20 - Proper VOID context in finally{} 2 ok 21 - Proper VOID context in finally{} 1 ok 22 - Proper context VOID in try{} ok 23 - Proper context VOID in catch{} ok 24 - Proper VOID context in finally{} 2 ok 25 - Proper VOID context in finally{} 1 ok t/erroneous_usage.t ............ 1..8 ok 1 - Bare catch() detected ok 2 - Bare finally() detected ok 3 - Bare catch()/finally() detected ok 4 - Bare finally()/catch() detected ok 5 - Multi-catch detected ok 6 - Unterminated try detected ok 7 - Bare catch at the end of a function call ok 8 - Bare finally at the end of a function call ok t/finally.t .................... 1..27 ok 1 - Moved into finally from try ok 2 - Error text as expected ok 3 - Into catch block as we died in try ok 4 - Moved into finally from catch ok 5 - Error text as expected ok 6 - Moved into finally from catch ok 7 - Moved into finally block when try throws an exception and we have no catch block ok 8 - Second finally clause run ok 9 - First finally clause run ok 10 - no error reported ok 11 - finally got passed the exception ok 12 - finally called ok 13 - not localized in try ok 14 - nothing in @_ (finally) ok 15 - $_ not localized (finally) ok 16 - same afterwards ok 17 - not localized in try ok 18 - error in @_ (catch) ok 19 - error in $_ (catch) ok 20 - error in @_ (finally) ok 21 - error in @_ (finally) ok 22 - $_ not localized (finally) ok 23 - same afterwards ok 24 - fin 2 called ok 25 - warnings from both fatal finally blocks ok 26 - First warning contains original exception ok 27 - Second warning contains original exception ok t/given_when.t ................. 1..2 ok 1 - error caught not ok 2 - error is also in $_ # TODO perhaps a workaround can be found # Failed (TODO) test 'error is also in $_' # at t/given_when.t line 36. # got: 'foo' # expected: 'blah # ' ok t/global_destruction_forked.t .. 1..3 ok 1 - nested try in cleanup after fork does not maintain outer catch block ok 2 - nested try in cleanup after fork does not maintain outer finally block ok 3 - Didn't just exit ok t/global_destruction_load.t .... 1..3 ok 1 - try gets installed when loading Try::Tiny during global destruction ok 2 - catch gets installed when loading Try::Tiny during global destruction ok 3 - finally gets installed when loading Try::Tiny during global destruction ok t/named.t ...................... 1..3 ok 1 - try name ok 2 - catch name ok 3 - finally name ok t/when.t ....................... 1..5 ok 1 ok 2 - $_ not clobbered ok 3 - bar didn't match ok 4 - foo matched ok 5 - fallback didn't match ok All tests successful. Files=10, Tests=102, 2 wallclock secs ( 0.03 usr + 0.03 sys = 0.06 CPU) Result: PASS DOY/Try-Tiny-0.20.tar.gz nmake test TEST_VERBOSE=1 -- OK Jesse Luehrs <doy@cpan.org> minimal try/catch with proper preservation of $@ >>> (cd C:\cpanfly-5.12\var\cpan\build\Try-Tiny-0.20-8yWA4y && tar cvf - Try-Tiny-0.20.ppd blib) | gzip -c >C:/cpanfly-5.12/var/REPO/D/DO/DOY/Try-Tiny-0.20.tar.gz Try-Tiny-0.20.ppd blib/ blib/lib/ blib/lib/Try/ blib/lib/Try/Tiny.pm >>> mv C:\cpanfly-5.12\var\cpan\build\Try-Tiny-0.20-8yWA4y/Try-Tiny-0.20.ppd C:/cpanfly-5.12/var/REPO/D/DO/DOY Finished 2014-03-21T21:02:33