rustdoc: Don't run Markdown tests twice
This matches the behaviour for finding tests in Rust files.
This commit is contained in:
parent
ccf401f8f7
commit
1966a6798d
1 changed files with 6 additions and 2 deletions
|
@ -163,8 +163,12 @@ pub fn test(input: &str, cfgs: Vec<String>, libs: SearchPaths, externs: Externs,
|
|||
true, opts, maybe_sysroot, None,
|
||||
Some(input.to_owned()),
|
||||
render_type);
|
||||
if render_type == RenderType::Pulldown {
|
||||
old_find_testable_code(&input_str, &mut collector, DUMMY_SP);
|
||||
find_testable_code(&input_str, &mut collector, DUMMY_SP);
|
||||
} else {
|
||||
old_find_testable_code(&input_str, &mut collector, DUMMY_SP);
|
||||
}
|
||||
test_args.insert(0, "rustdoctest".to_string());
|
||||
testing::test_main(&test_args, collector.tests,
|
||||
testing::Options::new().display_output(display_warnings));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue