1
Fork 0

Use --cfg when running doctests

Previously passed --cfg was used only when collecting doctests.
This commit is contained in:
Seo Sanghyeon 2015-12-15 18:03:55 +09:00
parent 9e63cecb10
commit eb25721063
4 changed files with 29 additions and 7 deletions

View file

@ -261,7 +261,7 @@ pub fn main_args(args: &[String]) -> isize {
match (should_test, markdown_input) {
(true, true) => {
return markdown::test(input, libs, externs, test_args)
return markdown::test(input, cfgs, libs, externs, test_args)
}
(true, false) => {
return test::run(input, cfgs, libs, externs, test_args, crate_name)