I’m using pytest with pytest-xdist to test some C code (via python bindings).
When a C program calls abort()
this segfaults libpython.
This is fine for a single process run (it exits with 134), but when I’m using -n[something]
then pytest just hangs and never returns.
I was hoping that --max-worker-restart 0
would do the trick, but alas no.
Does anyone have any suggestions on how to (ideally) treat this crash as a failed test or (less ideal but still better than what I currently have) to just exit with an error code and not hang?
2