rust-lang / rust

Empowering everyone to build reliable and efficient software.
https://www.rust-lang.org
Other
96.87k stars 12.52k forks source link

compiletest: add a `needs-subprocess` directive #128295

Open jieyouxu opened 1 month ago

jieyouxu commented 1 month ago

This is more semantically meaningful than random e.g. ignore-sgx directives, and if and when some targets do gain subprocess support, it's easier to update all the tests that rely on subprocesses in one go and try to see if they fail.

jieyouxu commented 1 month ago

To implement this, we may need another hacky collection of known allowlist/denylist of subprocess support 🤦

the8472 commented 1 month ago

You could probe it by attempting to spawn a process