Changeset 205832b in mainline for kernel/test/cht/cht1.c
- Timestamp:
- 2012-11-05T15:37:39Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f048658
- Parents:
- 6b99156
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/test/cht/cht1.c
r6b99156 r205832b 97 97 static const char * do_sanity_test(cht_t *h) 98 98 { 99 if (cht_find_lazy(h, 0))99 if (cht_find_lazy(h, (void*)0)) 100 100 return "Found lazy in empty table."; 101 101 102 if (cht_find(h, 0))102 if (cht_find(h, (void*)0)) 103 103 return "Found in empty table."; 104 104 105 if (cht_remove_key(h, 0))105 if (cht_remove_key(h, (void*)0)) 106 106 return "Removed from empty table."; 107 107 108 108 const int val_cnt = 6; 109 val_t *v[6] = { 0};109 val_t *v[6] = { NULL }; 110 110 111 111 for (int i = 0; i < val_cnt; ++i) … … 145 145 146 146 if (cht_find(h, (void*)0)) 147 return " Fantom find.";147 return "Phantom find."; 148 148 149 149 cht_link_t *item = cht_find(h, (void*)v[5]->unique_id); … … 226 226 } 227 227 228 return 0;228 return NULL; 229 229 } 230 230 … … 559 559 return "CHT stress test failed."; 560 560 else 561 return 0;562 } 561 return NULL; 562 }
Note:
See TracChangeset
for help on using the changeset viewer.