Changeset 38c773e7 in mainline


Ignore:
Timestamp:
2011-05-17T16:07:31Z (13 years ago)
Author:
Martin Decky <martin@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
e6eee2b
Parents:
013a5d7
Message:

make really sure the test does not trip over and fell on its own running chain saw

Location:
uspace/app/tester/mm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/tester/mm/common.c

    r013a5d7 r38c773e7  
    323323        /* Map the memory area */
    324324        void *addr = as_get_mappable_page(size);
     325        if (addr == NULL) {
     326                free(area);
     327                return NULL;
     328        }
     329       
    325330        area->addr = as_area_create(addr, size, AS_AREA_WRITE | AS_AREA_READ);
    326331        if (area->addr == (void *) -1) {
  • uspace/app/tester/mm/malloc3.c

    r013a5d7 r38c773e7  
    236236                                        mem_area_t *area = map_area(AREA_SIZE);
    237237                                        RETURN_IF_ERROR;
    238                                        
    239                                         TPRINTF("*");
    240                                         fill_area(area);
     238                                        if (area != NULL) {
     239                                                TPRINTF("*");
     240                                                fill_area(area);
     241                                        } else
     242                                                TPRINTF("F(*)");
    241243                                }
    242244                        }
Note: See TracChangeset for help on using the changeset viewer.