Include message on tests that should panic

This commit is contained in:
Kenny Goodin
2019-09-24 14:20:52 -04:00
parent ddf43867a9
commit 821ff46878
2 changed files with 3 additions and 2 deletions

View File

@@ -1546,6 +1546,7 @@ fn calc_result(desc: &TestDesc, task_result: Result<(), Box<dyn Any + Send>>) ->
}
}
}
(&ShouldPanic::Yes, Ok(())) => TrFailedMsg("test did not panic as expected".to_string()),
_ if desc.allow_fail => TrAllowedFail,
_ => TrFailed,
}