Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 15 additions & 6 deletions cot-test/tests/doc_code_blocks.rs
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,21 @@ fn test_md(trials: &mut Vec<Trial>, file_name: &str, file_contents: &str) {
let line = node_data.sourcepos.start.line;
let runner = *runner;
let file_name = file_name.to_string();
trials.push(Trial::test(
format!(
"{file_name}; line {line}; language {lang:?}; config {test_config:?}"
),
move || runner(&literal),
));

// Rust and Askama tests invoke `cargo check`, which spawns a subprocess via
// `pidfd_spawnp` - an operation Miri doesn't support.
let needs_subprocess =
matches!(lang, TestLanguage::Rust | TestLanguage::AskamaTemplate);
Comment on lines +91 to +94

trials.push(
Trial::test(
format!(
"{file_name}; line {line}; language {lang:?}; config {test_config:?}"
),
move || runner(&literal),
)
.with_ignored_flag(cfg!(miri) && needs_subprocess),
);
}
}
}
Expand Down
Loading