1
Fork 0

Migrate runmake tests away from custom commands and command_output

This commit is contained in:
Jakub Beránek 2024-06-07 15:23:10 +02:00
parent 18ae9afa82
commit 0a190e8d2d
No known key found for this signature in database
GPG key ID: 909CD0D26483516B
30 changed files with 176 additions and 141 deletions

View file

@ -4,9 +4,7 @@
use run_make_support::rustdoc;
fn main() {
let output =
String::from_utf8(rustdoc().input("input.rs").arg("--test").command_output().stdout)
.unwrap();
let output = rustdoc().input("input.rs").arg("--test").run_fail().stdout_utf8();
let should_contain = &[
"input.rs - foo (line 5)",