rust/tests/ui/std
Martin Nordholts e1d4f2a0c2 tests: Require run-fail ui tests to have an exit code (SIGABRT not ok)
And introduce two new directives for ui tests:
* `run-crash`
* `run-fail-or-crash`

Normally a `run-fail` ui test like tests that panic shall not be
terminated by a signal like `SIGABRT`. So begin having that as a hard
requirement.

Some of our current tests do terminate by a signal/crash however.
Introduce and use `run-crash` for those tests. Note that Windows crashes
are not handled by signals but by certain high bits set on the process
exit code. Example exit code for crash on Windows: `0xc000001d`.
Because of this, we define "crash" on all platforms as "not exit with
success and not exit with a regular failure code in the range 1..=127".

Some tests behave differently on different targets:
* Targets without unwind support will abort (crash) instead of exit with
  failure code 101 after panicking. As a special case, allow crashes for
  `run-fail` tests for such targets.
* Different sanitizer implementations handle detected memory problems
  differently. Some abort (crash) the process while others exit with
  failure code 1. Introduce and use `run-fail-or-crash` for such tests.
2025-07-19 18:44:07 +02:00
..
channel-stack-overflow-issue-102246.rs Specify a concrete stack size in channel tests 2025-03-19 12:55:02 -04:00
fs-nul-byte-paths.rs cleaned up some tests 2025-07-05 00:45:24 +05:00
issue-3563-3.rs Move tests 2024-03-03 16:30:48 -03:00
issue-3563-3.stderr Move tests 2024-03-03 16:30:48 -03:00
issue-81357-unsound-file-methods.rs tests: Require run-fail ui tests to have an exit code (SIGABRT not ok) 2025-07-19 18:44:07 +02:00
stdio-from.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
thread-sleep-ms.rs tests: cleanup tests/ui/std/thread-sleep-ms.rs 2025-01-23 20:51:29 +08:00
windows-bat-args.rs More robust extension checking 2024-09-03 14:36:21 +02:00
windows-bat-args1.bat Disallow or quote all specials in bat args 2024-04-09 01:19:08 +02:00
windows-bat-args2.bat Disallow or quote all specials in bat args 2024-04-09 01:19:08 +02:00
windows-bat-args3.bat Disallow or quote all specials in bat args 2024-04-09 01:19:08 +02:00