about summary refs log tree commit diff
diff options
context:
space:
mode:
authorDavid Wood <david@davidtw.co>2018-08-13 11:56:01 +0200
committerDavid Wood <david@davidtw.co>2018-08-14 11:12:12 +0200
commitf7f7c1eef39e945b48a36729291dfe69b51be35d (patch)
tree141b06fea7e4d14a870e4f383243012298fadf93
parentb8b7a3c30ede8788b0727b04c70f0bc452a1c3ec (diff)
downloadrust-f7f7c1eef39e945b48a36729291dfe69b51be35d.tar.gz
rust-f7f7c1eef39e945b48a36729291dfe69b51be35d.zip
Moved problematic tests on dist-x86_64-musl back to compile-fail.
-rw-r--r--src/test/compile-fail/auxiliary/panic-runtime-unwind.rs27
-rw-r--r--src/test/compile-fail/auxiliary/panic-runtime-unwind2.rs27
-rw-r--r--src/test/compile-fail/auxiliary/wants-panic-runtime-unwind.rs16
-rw-r--r--src/test/compile-fail/want-abort-got-unwind.rs (renamed from src/test/ui/panic-runtime/want-abort-got-unwind.rs)0
-rw-r--r--src/test/compile-fail/want-abort-got-unwind2.rs (renamed from src/test/ui/panic-runtime/want-abort-got-unwind2.rs)0
-rw-r--r--src/test/ui/panic-runtime/want-abort-got-unwind.stderr6
-rw-r--r--src/test/ui/panic-runtime/want-abort-got-unwind2.stderr6
7 files changed, 70 insertions, 12 deletions
diff --git a/src/test/compile-fail/auxiliary/panic-runtime-unwind.rs b/src/test/compile-fail/auxiliary/panic-runtime-unwind.rs
new file mode 100644
index 00000000000..4bb36839d98
--- /dev/null
+++ b/src/test/compile-fail/auxiliary/panic-runtime-unwind.rs
@@ -0,0 +1,27 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// compile-flags:-C panic=unwind
+// no-prefer-dynamic
+
+#![feature(panic_runtime)]
+#![crate_type = "rlib"]
+
+#![no_std]
+#![panic_runtime]
+
+#[no_mangle]
+pub extern fn __rust_maybe_catch_panic() {}
+
+#[no_mangle]
+pub extern fn __rust_start_panic() {}
+
+#[no_mangle]
+pub extern fn rust_eh_personality() {}
diff --git a/src/test/compile-fail/auxiliary/panic-runtime-unwind2.rs b/src/test/compile-fail/auxiliary/panic-runtime-unwind2.rs
new file mode 100644
index 00000000000..4bb36839d98
--- /dev/null
+++ b/src/test/compile-fail/auxiliary/panic-runtime-unwind2.rs
@@ -0,0 +1,27 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// compile-flags:-C panic=unwind
+// no-prefer-dynamic
+
+#![feature(panic_runtime)]
+#![crate_type = "rlib"]
+
+#![no_std]
+#![panic_runtime]
+
+#[no_mangle]
+pub extern fn __rust_maybe_catch_panic() {}
+
+#[no_mangle]
+pub extern fn __rust_start_panic() {}
+
+#[no_mangle]
+pub extern fn rust_eh_personality() {}
diff --git a/src/test/compile-fail/auxiliary/wants-panic-runtime-unwind.rs b/src/test/compile-fail/auxiliary/wants-panic-runtime-unwind.rs
new file mode 100644
index 00000000000..2183338b249
--- /dev/null
+++ b/src/test/compile-fail/auxiliary/wants-panic-runtime-unwind.rs
@@ -0,0 +1,16 @@
+// Copyright 2016 The Rust Project Developers. See the COPYRIGHT
+// file at the top-level directory of this distribution and at
+// http://rust-lang.org/COPYRIGHT.
+//
+// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
+// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
+// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
+// option. This file may not be copied, modified, or distributed
+// except according to those terms.
+
+// no-prefer-dynamic
+
+#![crate_type = "rlib"]
+#![no_std]
+
+extern crate panic_runtime_unwind;
diff --git a/src/test/ui/panic-runtime/want-abort-got-unwind.rs b/src/test/compile-fail/want-abort-got-unwind.rs
index b178006411b..b178006411b 100644
--- a/src/test/ui/panic-runtime/want-abort-got-unwind.rs
+++ b/src/test/compile-fail/want-abort-got-unwind.rs
diff --git a/src/test/ui/panic-runtime/want-abort-got-unwind2.rs b/src/test/compile-fail/want-abort-got-unwind2.rs
index de8e010c3cb..de8e010c3cb 100644
--- a/src/test/ui/panic-runtime/want-abort-got-unwind2.rs
+++ b/src/test/compile-fail/want-abort-got-unwind2.rs
diff --git a/src/test/ui/panic-runtime/want-abort-got-unwind.stderr b/src/test/ui/panic-runtime/want-abort-got-unwind.stderr
deleted file mode 100644
index 69064b75ac5..00000000000
--- a/src/test/ui/panic-runtime/want-abort-got-unwind.stderr
+++ /dev/null
@@ -1,6 +0,0 @@
-error: cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
-
-error: the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
-
-error: aborting due to 2 previous errors
-
diff --git a/src/test/ui/panic-runtime/want-abort-got-unwind2.stderr b/src/test/ui/panic-runtime/want-abort-got-unwind2.stderr
deleted file mode 100644
index 69064b75ac5..00000000000
--- a/src/test/ui/panic-runtime/want-abort-got-unwind2.stderr
+++ /dev/null
@@ -1,6 +0,0 @@
-error: cannot link together two panic runtimes: panic_unwind and panic_runtime_unwind
-
-error: the linked panic runtime `panic_runtime_unwind` is not compiled with this crate's panic strategy `abort`
-
-error: aborting due to 2 previous errors
-