Changeset 7e13972 in mainline for kernel/test/mm/mapping1.c


Ignore:
Timestamp:
2006-12-12T18:51:06Z (18 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
cce6acf
Parents:
96348adc
Message:

remove asserts and panics from tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/mm/mapping1.c

    r96348adc r7e13972  
    6363        printf("Value at virtual address %p is %#x.\n", PAGE1, v1 = *((uint32_t *) PAGE1));
    6464       
    65         ASSERT(v0 == VALUE0);
    66         ASSERT(v1 == VALUE1);
     65        if (v0 != VALUE0)
     66                return "Value at v0 not equal to VALUE0";
     67        if (v1 != VALUE1)
     68                return "Value at v1 not equal to VALUE1";
    6769
    6870        printf("Writing %#x to virtual address %p.\n", 0, PAGE0);
     
    7779        printf("Value at virtual address %p is %#x.\n", PAGE1, *((uint32_t *) PAGE1));
    7880
    79         ASSERT(v0 == 0);
    80         ASSERT(v1 == 0);
     81        if (v0 != 0)
     82                return "Value at v0 not equal to 0";
     83        if (v1 != 0)
     84                return "Value at v1 not equal to 0";
    8185       
    8286        return NULL;   
Note: See TracChangeset for help on using the changeset viewer.