Changeset 5d2ab23 in mainline for test/mm/falloc1/test.c


Ignore:
Timestamp:
2006-01-17T20:52:33Z (19 years ago)
Author:
Ondrej Palkovsky <ondrap@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
64c44e8
Parents:
77147d6
Message:

Commit of the falloc_bad branch to trunk (719:723).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • test/mm/falloc1/test.c

    r77147d6 r5d2ab23  
    3434#include <debug.h>
    3535
    36 #define MAX_FRAMES 1024
     36#define MAX_FRAMES 2048
    3737#define MAX_ORDER 8
    3838#define TEST_RUNS 4
     
    5353                        allocated = 0;
    5454                        for (i=0;i<MAX_FRAMES>>order;i++) {
    55                                 frames[allocated] = frame_alloc(FRAME_NON_BLOCKING,order, &status);
     55                                frames[allocated] = frame_alloc(FRAME_NON_BLOCKING, order, &status);
     56                               
     57                                if (frames[allocated] % (FRAME_SIZE << order) != 0) {
     58                                        panic("Test failed. Block at address %X (size %dK) is not aligned\n", frames[allocated], (FRAME_SIZE << order) >> 10);
     59                                }
     60                               
    5661                                if (status == 0) {
    5762                                        allocated++;
Note: See TracChangeset for help on using the changeset viewer.