Skip to content

Commit f47bd3b

Browse files
committed
---
yaml --- r: 174934 b: refs/heads/snap-stage3 c: 918dd34 h: refs/heads/master v: v3
1 parent fa9bc72 commit f47bd3b

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: a0f86de49748b472d4d189d9688b0d856c000914
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 06d401948ba7451d8ed10b4a58e1e2d08c0094f7
4+
refs/heads/snap-stage3: 918dd3488f450383c5ce27f0a27f45fa3fc9d0d6
55
refs/heads/try: 08f6380a9f0b866796080094f44fe25ea5636547
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/dist-snap: ba4081a5a8573875fed17545846f6f6902c8ba8d

branches/snap-stage3/src/test/run-pass/issue-15149.rs

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,16 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11+
use std::path::BytesContainer;
1112
use std::io::{Command, fs, USER_RWX};
1213
use std::os;
1314

1415
fn main() {
1516
// If we're the child, make sure we were invoked correctly
1617
let args = os::args();
1718
if args.len() > 1 && args[1].as_slice() == "child" {
18-
return assert_eq!(args[0].as_slice(), "mytest");
19+
return assert_eq!(args[0],
20+
format!("mytest{}", os::consts::EXE_SUFFIX));
1921
}
2022

2123
test();
@@ -38,7 +40,12 @@ fn test() {
3840
path.push(child_dir.clone());
3941
let path = os::join_paths(path.as_slice()).unwrap();
4042

41-
assert!(Command::new("mytest").env("PATH", path.as_slice())
42-
.arg("child")
43-
.status().unwrap().success());
43+
let child_output = Command::new("mytest").env("PATH", path.as_slice())
44+
.arg("child")
45+
.output().unwrap();
46+
47+
assert!(child_output.status.success(),
48+
format!("child assertion failed\n child stdout:\n {}\n child stderr:\n {}",
49+
child_output.output.container_as_str().unwrap(),
50+
child_output.error.container_as_str().unwrap()));
4451
}

0 commit comments

Comments
 (0)