Skip to content

Commit f2b003e

Browse files
committed
Print dangling point cloud allocations at end-of-run.
1 parent 01605fe commit f2b003e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

tests/testlatency/testlatency.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
import argparse
33
import time
44
import os
5+
import cwipc
56
from testlatency_server import ServerThread
67
from testlatency_sender import SenderThread
78
from testlatency_receiver import ReceiverThread
@@ -245,4 +246,9 @@ def main():
245246
return 2
246247

247248
if __name__ == "__main__":
248-
sys.exit(main())
249+
rv = 1
250+
try:
251+
rv = main()
252+
finally:
253+
cwipc.cwipc_dangling_allocations(True)
254+
sys.exit(rv)

0 commit comments

Comments
 (0)