AdaCore / e3-core

Core framework for developing portable automated build systems
26 stars 36 forks source link

Fix pytest error #712

Closed leocardao closed 5 months ago

leocardao commented 5 months ago

When pytest is used with xdist and junitxml, tests are not run in the main thread. In addition, signals can only be used in the main thread.

This results in the failure of some tests that attempt to define a signal handler.

The signal handler causing the error is not tested, so we simply disable the handler if the current thread is not the main thread.