diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-03-06 15:01:30 +0100 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2019-03-06 15:01:30 +0100 |
| commit | d6add90c64a27de32a63b933f8f03d0c53fca4d0 (patch) | |
| tree | b435bd8c4bddd36b16caacfbf5b8569eddfe065d | |
| parent | 405d95080288dc760e117a506278d968d57dfe09 (diff) | |
| download | rust-d6add90c64a27de32a63b933f8f03d0c53fca4d0.tar.gz rust-d6add90c64a27de32a63b933f8f03d0c53fca4d0.zip | |
Improve code
| -rw-r--r-- | src/tools/compiletest/src/runtest.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index f7c02e831a9..7781ce74f41 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -291,7 +291,8 @@ impl<'test> TestCx<'test> { fn should_compile_successfully(&self) -> bool { match self.config.mode { CompileFail => self.props.compile_pass, - RunPass | JsDocTest => true, + RunPass => true, + JsDocTest => true, Ui => self.props.compile_pass, Incremental => { let revision = self.revision @@ -2728,6 +2729,8 @@ impl<'test> TestCx<'test> { if !res.status.success() { self.fatal_proc_rec("rustdoc-js test failed!", &res); } + } else { + self.fatal("no nodeJS"); } } |
