Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/test/atomic/atomic1.c

    ra35b458 re3306d04  
    3636        atomic_t a;
    3737
    38         atomic_set(&a, 10);
    39         if (atomic_get(&a) != 10)
    40                 return "Failed atomic_set()/atomic_get()";
     38        atomic_store(&a, 10);
     39        if (atomic_load(&a) != 10)
     40                return "Failed atomic_store()/atomic_load()";
    4141
    4242        if (atomic_postinc(&a) != 10)
    4343                return "Failed atomic_postinc()";
    44         if (atomic_get(&a) != 11)
    45                 return "Failed atomic_get() after atomic_postinc()";
     44        if (atomic_load(&a) != 11)
     45                return "Failed atomic_load() after atomic_postinc()";
    4646
    4747        if (atomic_postdec(&a) != 11)
    4848                return "Failed atomic_postdec()";
    49         if (atomic_get(&a) != 10)
    50                 return "Failed atomic_get() after atomic_postdec()";
     49        if (atomic_load(&a) != 10)
     50                return "Failed atomic_load() after atomic_postdec()";
    5151
    5252        if (atomic_preinc(&a) != 11)
    5353                return "Failed atomic_preinc()";
    54         if (atomic_get(&a) != 11)
    55                 return "Failed atomic_get() after atomic_preinc()";
     54        if (atomic_load(&a) != 11)
     55                return "Failed atomic_load() after atomic_preinc()";
    5656
    5757        if (atomic_predec(&a) != 10)
    5858                return "Failed atomic_predec()";
    59         if (atomic_get(&a) != 10)
    60                 return "Failed atomic_get() after atomic_predec()";
     59        if (atomic_load(&a) != 10)
     60                return "Failed atomic_load() after atomic_predec()";
    6161
    6262        return NULL;
Note: See TracChangeset for help on using the changeset viewer.