Skip to content

Commit d6add90

Browse files
Improve code
1 parent 405d950 commit d6add90

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/tools/compiletest/src/runtest.rs

+4-1
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,8 @@ impl<'test> TestCx<'test> {
291291
fn should_compile_successfully(&self) -> bool {
292292
match self.config.mode {
293293
CompileFail => self.props.compile_pass,
294-
RunPass | JsDocTest => true,
294+
RunPass => true,
295+
JsDocTest => true,
295296
Ui => self.props.compile_pass,
296297
Incremental => {
297298
let revision = self.revision
@@ -2728,6 +2729,8 @@ impl<'test> TestCx<'test> {
27282729
if !res.status.success() {
27292730
self.fatal_proc_rec("rustdoc-js test failed!", &res);
27302731
}
2732+
} else {
2733+
self.fatal("no nodeJS");
27312734
}
27322735
}
27332736

0 commit comments

Comments
 (0)