Changeset 2138 for pjproject/trunk
- Timestamp:
- Jul 14, 2008 4:58:11 PM (16 years ago)
- Location:
- pjproject/trunk/pjlib
- Files:
-
- 1 added
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
pjproject/trunk/pjlib/build/Makefile
r2037 r2138 34 34 export TEST_SRCDIR = ../src/pjlib-test 35 35 export TEST_OBJS += activesock.o atomic.o echo_clt.o errno.o exception.o \ 36 fifobuf.o file.o ioq_perf.o ioq_udp.o ioq_unreg.o \37 ioq_ tcp.o \36 fifobuf.o file.o hash_test.o ioq_perf.o ioq_udp.o \ 37 ioq_unreg.o ioq_tcp.o \ 38 38 list.o mutex.o os.o pool.o pool_perf.o rand.o rbtree.o \ 39 39 select.o sleep.o sock.o sock_perf.o \ -
pjproject/trunk/pjlib/src/pj/hash.c
r2039 r2138 277 277 it->entry = NULL; 278 278 279 for (; it->index < ht->rows; ++it->index) {279 for (; it->index <= ht->rows; ++it->index) { 280 280 it->entry = ht->table[it->index]; 281 281 if (it->entry) { … … 295 295 } 296 296 297 for (++it->index; it->index < ht->rows; ++it->index) {297 for (++it->index; it->index <= ht->rows; ++it->index) { 298 298 it->entry = ht->table[it->index]; 299 299 if (it->entry) { … … 320 320 int len, totlen = 0; 321 321 322 for (i=0; i< ht->rows; ++i) {322 for (i=0; i<=ht->rows; ++i) { 323 323 unsigned count = 0; 324 324 pj_hash_entry *entry = ht->table[i]; -
pjproject/trunk/pjlib/src/pjlib-test/test.c
r2039 r2138 103 103 #endif 104 104 105 #if INCLUDE_HASH_TEST 106 DO_TEST( hash_test() ); 107 #endif 108 105 109 #if INCLUDE_TIMESTAMP_TEST 106 110 DO_TEST( timestamp_test() ); -
pjproject/trunk/pjlib/src/pjlib-test/test.h
r2039 r2138 37 37 #define INCLUDE_RAND_TEST GROUP_LIBC 38 38 #define INCLUDE_LIST_TEST GROUP_DATA_STRUCTURE 39 #define INCLUDE_HASH_TEST GROUP_DATA_STRUCTURE 39 40 #define INCLUDE_POOL_TEST GROUP_LIBC 40 41 #define INCLUDE_POOL_PERF_TEST GROUP_LIBC … … 75 76 extern int rand_test(void); 76 77 extern int list_test(void); 78 extern int hash_test(void); 77 79 extern int pool_test(void); 78 80 extern int pool_perf_test(void);
Note: See TracChangeset
for help on using the changeset viewer.