Skip to content

Commit 8233b28

Browse files
committed
Remove segfault test since behavior varies by platform
1 parent 9c2d227 commit 8233b28

File tree

2 files changed

+2
-9
lines changed

2 files changed

+2
-9
lines changed

src/test/ui/test-panic-abort.rs

-6
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,3 @@ fn it_fails() {
3434
fn it_exits() {
3535
std::process::exit(123);
3636
}
37-
38-
#[test]
39-
fn it_segfaults() {
40-
let x = unsafe { *(0 as *const u64) };
41-
println!("output: {}", x);
42-
}

src/test/ui/test-panic-abort.run.stdout

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11

2-
running 5 tests
2+
running 4 tests
33
test it_exits ... FAILED
44
test it_fails ... FAILED
55
test it_panics ... ok
6-
test it_segfaults ... ok
76
test it_works ... ok
87

98
failures:
@@ -26,5 +25,5 @@ failures:
2625
it_exits
2726
it_fails
2827

29-
test result: FAILED. 3 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
28+
test result: FAILED. 2 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out
3029

0 commit comments

Comments
 (0)