rust/tests/run-pass/panic
bors e5c3af6f51 Auto merge of #1818 - landaire:feature/panic-on-unsupported-syscalls, r=RalfJung
Add support for panicking in the emulated application when unsupported functionality is encountered

This PR fixes #1807 and allows an optional flag to be specified to panic when an unsupported syscall is encountered. In essence, instead of bubbling up an error in the context of the Miri application Miri will panic within the context of the *emulated* application. This feature is desired to allow CI pipelines to determine if a Miri failure is unsupported functionality or actual UB. Please read [this comment](https://github.com/rust-lang/miri/issues/1807#issuecomment-845425076) for the rationale behind this change.

Note: this change does not cover all cases where unsupported functionality errors may be raised. If you search the repo for `throw_unsup_format!` there are many cases that I think are less likely to occur and may still be problematic for some folks.

TODO:

- [x] README documentation on this new flag
- [x] Add tests
2021-06-09 18:09:06 +00:00
..
catch_panic.rs Update rust version. 2021-02-05 10:08:05 +01:00
catch_panic.stderr Update Box<Any> to Box<dyn Any> in catch_panic.stderr 2021-06-08 22:18:27 +08:00
concurrent-panic.rs Review comments 2020-08-31 19:32:14 -05:00
concurrent-panic.stderr Apply review changes, incrementing the clocks twice is an unnecessary hold-over from earlier versions so fixed. 2020-11-27 19:26:06 +00:00
div-by-zero-2.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
div-by-zero-2.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
overflowing-lsh-neg.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
overflowing-lsh-neg.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
overflowing-rsh-1.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
overflowing-rsh-1.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
overflowing-rsh-2.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
overflowing-rsh-2.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
panic1.rs backtrace tests: support more ways of checking out Rust locally 2020-10-31 13:47:42 +01:00
panic1.stderr rustup; make panic output less dependent on stdlib internals 2020-10-25 10:00:50 +01:00
panic2.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
panic2.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
panic3.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
panic3.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
panic4.rs with this, we support panics on Windows 2020-06-27 14:43:37 +02:00
panic4.stderr Enable backtrace feature in the generated Xargo.toml 2020-10-20 18:27:55 -04:00
std-panic-locations.rs Fix panic test. 2021-03-08 17:06:50 +01:00
unsupported_foreign_function.rs Add support for panicking in the emulated application when unsupported syscalls are encountered 2021-06-07 15:21:53 -07:00
unsupported_foreign_function.stderr Add support for panicking in the emulated application when unsupported syscalls are encountered 2021-06-07 15:21:53 -07:00