Changeset 69
- Timestamp:
- 05/06/08 17:20:49 (8 months ago)
- Location:
- trunk/Curses-UI-POE
- Files:
-
- 2 modified
-
examples/irc_client (modified) (2 diffs)
-
t/session.t (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Curses-UI-POE/examples/irc_client
r68 r69 73 73 74 74 printf "--- %s (%s) quit \"%s\"", $nick, $hostmask, $_[ARG1]; 75 76 $Curses->dropnick($nick); 75 77 }, 76 78 … … 218 220 { -label => 'Help', 219 221 -submenu => [ 220 { -label => ' About editor', -value => \&about_dialog }222 { -label => 'about', -value => \&about_dialog } 221 223 ] 222 224 }, -
trunk/Curses-UI-POE/t/session.t
r65 r69 6 6 use warnings FATAL => "all"; 7 7 8 use Test::Simple tests => 4; 8 #use Test::Simple tests => 4; 9 use Test; 10 BEGIN { 11 plan tests => 4; 12 } 13 14 # I realize skip is supposed to be conditional, but I don't want the test to 15 # run as normal and I do want it to be reported as skipped. This test doesn't 16 # work worth a damn in perl 5.006 and lesser. 17 if ($] < 5.008) { 18 skip(1,"_start"); 19 skip(1,"yield"); 20 skip(1,"_stop"); 21 skip(1,"exit"); 22 23 exit; 24 } 9 25 10 26 BEGIN { 11 open OLDERR, ">&", \*STDERR; 12 open OLDOUT, ">&", \*STDOUT; 27 if ($] >= 5.008) { 28 open OLDERR, ">&", \*STDERR; 29 open OLDOUT, ">&", \*STDOUT; 13 30 14 open STDOUT, ">>", "/dev/null"; 15 open STDERR, ">>", "/dev/null"; 31 open STDOUT, ">>", "/dev/null"; 32 open STDERR, ">>", "/dev/null"; 33 } 16 34 } 17 35 … … 20 38 my $cui = new Curses::UI::POE inline_states => { 21 39 _start => sub { 22 open STDOUT, ">>&=", \*OLDOUT; 23 open STDERR, ">>&=", \*OLDERR; 40 if ($] >= 5.008) { 41 open STDOUT, ">>&=", \*OLDOUT; 42 open STDERR, ">>&=", \*OLDERR; 43 } 24 44 25 45 ok("_start"); … … 35 55 _stop => sub { 36 56 ok("_stop"); 37 open STDOUT, ">>", "/dev/null"; 38 open STDERR, ">>", "/dev/null"; 57 58 if ($] >= 5.008) { 59 open STDOUT, ">>", "/dev/null"; 60 open STDERR, ">>", "/dev/null"; 61 } 39 62 }, 40 63 }, -no_output => 1; # Lotta good -no_output does..