epics-extensions / ca-gateway

Channel Access PV Gateway
http://www.aps.anl.gov/epics/extensions/gateway/
Other
17 stars 17 forks source link

test: register stopping the child processes with atexit #12

Closed ralphlange closed 8 years ago

ralphlange commented 8 years ago

An attempt to improve the test clean-up by registering the stop() functions of both control classes (for the IOC and the Gateway) with atexit.

@anjohnson: please check if this fixes epics-extensions/ca-gateway#10 - the doc says atexit functions are only called on a regular Python exit, and I don't know if your failure case falls under that category.

anjohnson commented 8 years ago

Yup, this works for me. With this change the tests still fail in pyepics, but they leave no gateway processes running. I switched back to master again and make runtests left me with 11 gateway processes to kill by hand.

Thanks!