Search
lxdream.org :: lxdream/src/test/testxlt.c :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename src/test/testxlt.c
changeset 515:5e5bb1dd369e
prev363:7d0bab24016c
next561:533f6b478071
author nkeynes
date Thu Nov 15 08:17:17 2007 +0000 (12 years ago)
permissions -rw-r--r--
last change Fix compilation of the unit tests
file annotate diff log raw
1.1 --- a/src/test/testxlt.c Tue Aug 28 08:47:35 2007 +0000
1.2 +++ b/src/test/testxlt.c Thu Nov 15 08:17:17 2007 +0000
1.3 @@ -17,7 +17,7 @@
1.4 assert( block->active == 1 );
1.5 assert( block->size == XLAT_NEW_CACHE_SIZE - (2*sizeof(struct xlat_cache_block)) );
1.6 memset( block->code, 0xB5, 8192 );
1.7 - xlat_commit_block( 8192 );
1.8 + xlat_commit_block( 8192, 100 );
1.9 assert( block->active == 1 );
1.10 assert( block->size == 8192 );
1.11
1.12 @@ -26,7 +26,7 @@
1.13 assert( block2->active == 1 );
1.14 assert( block2->size == XLAT_NEW_CACHE_SIZE - (3*sizeof(struct xlat_cache_block)) - 8192 );
1.15 memset( block2->code, 0x6D, size );
1.16 - xlat_commit_block( size );
1.17 + xlat_commit_block( size, 200 );
1.18 assert( block2->active == 1 );
1.19 assert( block2->size == size );
1.20
1.21 @@ -41,7 +41,7 @@
1.22 assert( block3->active == 1 );
1.23 assert( block3->size == 4096 );
1.24 memset( block3->code, 0x9C, 4096 );
1.25 - xlat_cache_block_t block3a = xlat_extend_block();
1.26 + xlat_cache_block_t block3a = xlat_extend_block(8192);
1.27 assert( block3a != block3 );
1.28 assert( block3a == block );
1.29 assert( block3a->active == 1 );
1.30 @@ -54,7 +54,7 @@
1.31 for( i=4096; i<8192; i++ ) {
1.32 assert( block3a->code[i] == 0xB5 );
1.33 }
1.34 - xlat_commit_block(6142);
1.35 + xlat_commit_block(6142, 432);
1.36 addr = xlat_get_code( 0x0D009800 );
1.37 assert( addr == &block3a->code );
1.38 /* check promoted block in temp cache */
.