/[VRac]/t/10-orao.t
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /t/10-orao.t

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 132 by dpavlin, Sat Aug 4 21:04:05 2007 UTC revision 153 by dpavlin, Sun Aug 5 16:06:29 2007 UTC
# Line 6  use strict; Line 6  use strict;
6  use blib;  use blib;
7  use lib './lib';  use lib './lib';
8    
9  use Test::More tests => 21;  use Test::More tests => 27;
10  use Test::Exception;  use Test::Exception;
11  use Data::Dump qw/dump/;  use Data::Dump qw/dump/;
12    
# Line 59  test_mem( 0x6000 ); Line 59  test_mem( 0x6000 );
59  test_mem( 0x7000 );  test_mem( 0x7000 );
60  dies_ok { $orao->poke_code( 0xf000, 1 ) } 'access to ro memory';  dies_ok { $orao->poke_code( 0xf000, 1 ) } 'access to ro memory';
61    
62    my $path = '/tmp/foo';
63    unlink $path if -e $path;
64    
65    my $size = 0;
66    
67    foreach my $data ( qw/a b c foo bar aaaabbbbccccddddeeeeffff/ ) {
68            VRac->append_to_file( $path, $data );
69            $size += length($data);
70            cmp_ok(-s $path, '==', $size);
71    }

Legend:
Removed from v.132  
changed lines
  Added in v.153

  ViewVC Help
Powered by ViewVC 1.1.26