You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

105 lines
5.7 KiB

TEST: basic creation / free [22:27:05-907.488] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c022f930, hash_size=0
[22:27:05-907.516] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c022fbe0, hash_size=16
[22:27:05-907.521] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c022f930, head=(nil), tail=(nil), count=0
[22:27:05-907.526] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c022fbe0, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c022f2b0
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: FIFO ordering [22:27:05-907.546] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c0230170, hash_size=0
[22:27:05-907.551] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c0230170, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c022fd00
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: put_first (LIFO priority) [22:27:05-907.567] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c0230c40, hash_size=0
[22:27:05-907.572] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c0230c40, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c02307b0
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: callback serial processing [22:27:05-907.590] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c02310a0, hash_size=0
[22:27:05-907.595] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c02310a0, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c0230cd0
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: wait_threshold + cancel [22:27:05-907.610] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c02314b0, hash_size=0
[22:27:05-907.614] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:214) check_waiters() check_waiters: condition met, calling callback, count=2<=2, bytes=0<=0 (max_bytes_check=disabled)
[22:27:05-907.638] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c02314b0, head=0x5583c0230470, tail=0x5583c02303a0, count=2
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c0231130
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: size limit + hash find/remove [22:27:05-907.656] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c02318c0, hash_size=16
[22:27:05-907.660] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c02318c0, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c0231540
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: memory_pool integration + reuse [22:27:05-907.681] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c0231c70, hash_size=0
[22:27:05-907.685] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c0231c70, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c02318c0
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
TEST: stress 10k ops [22:27:05-907.703] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:37) queue_new() queue_new: created queue 0x5583c0232110, hash_size=64
[22:27:05-908.102] [DEBUG] [2] (/home/vnc1/proj/utun3/lib/ll_queue.c:60) queue_free() queue_free: freeing queue 0x5583c0232110, head=(nil), tail=(nil), count=0
🔍 BEFORE_DESTROY: UASYNC Resource Report for 0x5583c0231c70
Timer Statistics: allocated=0, freed=0, active=0
Socket Statistics: allocated=0, freed=0, active=0
Active timers in heap: 0
Socket array capacity: 16, active: 0
Total active sockets: 0
🔚 BEFORE_DESTROY: End of resource report
PASS
=== SUMMARY ===
run=8 passed=8 failed=0
callbacks: queue=5 waiter=2
ops=10000 time=0.69 ms
PASS test_ll_queue (exit status: 0)