Skip to content

Commit 4704958

Browse files
felixcalexcrichton
authored andcommitted
---
yaml --- r: 102245 b: refs/heads/master c: e3a251a h: refs/heads/master i: 102243: f6e5536 v: v3
1 parent 484f5c5 commit 4704958

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: cdc5729ea2dc98f83c9a88ce7aa0f52ba5a606e6
2+
refs/heads/master: e3a251a41021ae0f8c0d97235d9da9d38e0d9f4a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 6e7f170fedd3c526a643c0b2d13863acd982be02
55
refs/heads/try: a97642026c18a624ff6ea01075dd9550f8ed07ff

trunk/src/librustdoc/test.rs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// except according to those terms.
1010

1111
use std::cell::RefCell;
12+
use std::io;
1213
use std::io::Process;
1314
use std::local_data;
1415
use std::os;
@@ -128,7 +129,10 @@ fn runtest(test: &str, cratename: &str, libs: HashSet<Path>, should_fail: bool)
128129
let exe = outdir.path().join("rust_out");
129130
let out = Process::output(exe.as_str().unwrap(), []);
130131
match out {
131-
Err(e) => fail!("couldn't run the test: {}", e),
132+
Err(e) => fail!("couldn't run the test: {}{}", e,
133+
if e.kind == io::PermissionDenied {
134+
" - maybe your tempdir is mounted with noexec?"
135+
} else { "" }),
132136
Ok(out) => {
133137
if should_fail && out.status.success() {
134138
fail!("test executable succeeded when it should have failed");

0 commit comments

Comments
 (0)