Rollup merge of #114172 - fortanix:raoul/fix_process-spawning_test, r=workingjubilee

Fix issue_15149 test for the SGX target

PR https://github.com/rust-lang/rust/pull/112390 moved tests to std. Unfortunately, this caused the `issue_15149` test to be enabled for the SGX target. This is incorrect as the SGX target does not support the `env::current_exe()` call.
This commit is contained in:
Matthias Krüger 2023-07-29 06:13:07 +02:00 committed by GitHub
commit 68dc159241
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,3 +1,5 @@
#![cfg(not(target_env="sgx"))]
use std::env;
use std::fs;
use std::process;