Fix CI error caused by critical-section 0.2.8

This commit is contained in:
Emil Fresk 2022-12-14 21:26:40 +01:00
parent 9afb1f888f
commit d6edeb6a64
3 changed files with 17 additions and 1 deletions

View file

@ -46,7 +46,15 @@ impl<'a> CargoCommand<'a> {
features,
mode,
} => {
let mut args = vec![self.name(), "--example", example, "--target", target];
let mut args = vec![
self.name(),
"--example",
example,
"--target",
target,
"--features",
"test-critical-section",
];
if let Some(feature_name) = features {
args.extend_from_slice(&["--features", feature_name]);