Skip to content

Commit 4c3c3fd

Browse files
committed
compiletest: make the crash test error message abit more informative
1 parent 9fdbfe1 commit 4c3c3fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/tools/compiletest/src/runtest.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,10 @@ impl<'test> TestCx<'test> {
375375
// if a test does not crash, consider it an error
376376
if proc_res.status.success() || matches!(proc_res.status.code(), Some(1 | 0)) {
377377
self.fatal(&format!(
378-
"test no longer crashes/triggers ICE! Please give it a mearningful name, \
378+
"Crashtest no longer crashes/triggers ICE, horray! Please give it a meaningful name, \
379379
add a doc-comment to the start of the test explaining why it exists and \
380-
move it to tests/ui or wherever you see fit."
380+
move it to tests/ui or wherever you see fit. Adding 'Fixes #<issueNr>' to your PR body \
381+
and commit message ensures that the correspondig ticket is auto-closed upon merge."
381382
));
382383
}
383384
}

0 commit comments

Comments
 (0)