Changes in kernel/test/cht/cht1.c [63e27ef:c28413a9] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/cht/cht1.c
r63e27ef rc28413a9 27 27 */ 28 28 29 #include <assert.h>30 29 #include <test.h> 31 30 #include <print.h> 31 #include <debug.h> 32 32 #include <adt/cht.h> 33 33 #include <synch/rcu.h> … … 45 45 { 46 46 val_t *v = member_to_inst(item, val_t, link); 47 assert(v->hash == (v->unique_id % 10));47 ASSERT(v->hash == (v->unique_id % 10)); 48 48 return v->hash; 49 49 } … … 70 70 { 71 71 val_t *v = member_to_inst(item, val_t, link); 72 assert(!v->deleted);72 ASSERT(!v->deleted); 73 73 v->deleted = true; 74 74 free(v); … … 364 364 { 365 365 stress_work_t *work = (stress_work_t *)arg; 366 assert(0 == *work->stop);366 ASSERT(0 == *work->stop); 367 367 368 368 size_t loops = 0; … … 528 528 thr[i] = thread_create(resize_stresser, &pwork[i], TASK, 0, "cht-resize"); 529 529 530 assert(thr[i]);530 ASSERT(thr[i]); 531 531 thread_wire(thr[i], &cpus[i % config.cpu_active]); 532 532 thread_ready(thr[i]);
Note:
See TracChangeset
for help on using the changeset viewer.