Skip to content

Commit a0999e2

Browse files
committed
---
yaml --- r: 127027 b: refs/heads/snap-stage3 c: ec79d36 h: refs/heads/master i: 127025: eb870b7 127023: ba9f538 v: v3
1 parent 6043c6a commit a0999e2

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
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: 7be8f0af0393dcdb077c2f6b1653836fd3fba235
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: f86184869a95199a2e0da844ad257c67f1aac97a
4+
refs/heads/snap-stage3: ec79d368d2f9b56ac1d00825108b4e8b8bd26498
55
refs/heads/try: 502e4c045236682e9728539dc0d2b3d0b237f55c
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/src/librustrt/task.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -649,7 +649,7 @@ mod test {
649649
#[should_fail]
650650
fn test_begin_unwind() {
651651
use std::rt::unwind::begin_unwind;
652-
begin_unwind("cause", file!(), line!())
652+
begin_unwind("cause", &(file!(), line!()))
653653
}
654654

655655
#[test]

branches/snap-stage3/src/libuuid/lib.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ unlikely.
2929
To create a new random (V4) UUID and print it out in hexadecimal form:
3030
3131
```rust
32+
# #![allow(deprecated)]
33+
# extern crate uuid;
3234
use uuid::Uuid;
3335
3436
fn main() {

branches/snap-stage3/src/test/auxiliary/lang-item-public.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
#![feature(lang_items)]
1313

1414
#[lang="fail_"]
15-
fn fail(_: &'static str, _: &'static str, _: uint) -> ! { loop {} }
15+
fn fail(_: &(&'static str, &'static str, uint)) -> ! { loop {} }
1616

1717
#[lang = "stack_exhausted"]
1818
extern fn stack_exhausted() {}

branches/snap-stage3/src/test/run-pass/backtrace.rs

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,10 @@ fn start(argc: int, argv: *const *const u8) -> int {
2424

2525
#[inline(never)]
2626
fn foo() {
27-
fail!()
27+
let _v = vec![1i, 2, 3];
28+
if os::getenv("IS_TEST").is_some() {
29+
fail!()
30+
}
2831
}
2932

3033
#[inline(never)]
@@ -37,32 +40,35 @@ fn double() {
3740
}
3841

3942
fn runtest(me: &str) {
43+
let mut template = Command::new(me);
44+
template.env("IS_TEST", "1");
45+
4046
// Make sure that the stack trace is printed
41-
let mut p = Command::new(me).arg("fail").env("RUST_BACKTRACE", "1").spawn().unwrap();
47+
let p = template.clone().arg("fail").env("RUST_BACKTRACE", "1").spawn().unwrap();
4248
let out = p.wait_with_output().unwrap();
4349
assert!(!out.status.success());
4450
let s = str::from_utf8(out.error.as_slice()).unwrap();
4551
assert!(s.contains("stack backtrace") && s.contains("foo::h"),
4652
"bad output: {}", s);
4753

4854
// Make sure the stack trace is *not* printed
49-
let mut p = Command::new(me).arg("fail").spawn().unwrap();
55+
let p = template.clone().arg("fail").spawn().unwrap();
5056
let out = p.wait_with_output().unwrap();
5157
assert!(!out.status.success());
5258
let s = str::from_utf8(out.error.as_slice()).unwrap();
5359
assert!(!s.contains("stack backtrace") && !s.contains("foo::h"),
5460
"bad output2: {}", s);
5561

5662
// Make sure a stack trace is printed
57-
let mut p = Command::new(me).arg("double-fail").spawn().unwrap();
63+
let p = template.clone().arg("double-fail").spawn().unwrap();
5864
let out = p.wait_with_output().unwrap();
5965
assert!(!out.status.success());
6066
let s = str::from_utf8(out.error.as_slice()).unwrap();
6167
assert!(s.contains("stack backtrace") && s.contains("double::h"),
6268
"bad output3: {}", s);
6369

6470
// Make sure a stack trace isn't printed too many times
65-
let mut p = Command::new(me).arg("double-fail")
71+
let p = template.clone().arg("double-fail")
6672
.env("RUST_BACKTRACE", "1").spawn().unwrap();
6773
let out = p.wait_with_output().unwrap();
6874
assert!(!out.status.success());

0 commit comments

Comments
 (0)