about summary refs log tree commit diff
path: root/tests/ui/process
AgeCommit message (Collapse)AuthorLines
2025-09-26Ignore more failing ui tests for GCC backendGuillaume Gomez-0/+1
2025-09-19Fix test suite in iOS/tvOS/watchOS/visionOS simulatorMads Marquart-5/+51
2025-08-06Print thread ID in panic message if thread name is unknownTrevor Gross-7/+16
`panic!` does not print any identifying information for threads that are unnamed. However, in many cases, the thread ID can be determined. This changes the panic message from something like this: thread '<unnamed>' panicked at src/main.rs:3:5: explicit panic To something like this: thread '<unnamed>' (0xff9bf) panicked at src/main.rs:3:5: explicit panic Stack overflow messages are updated as well. This change applies to both named and unnamed threads. The ID printed is the OS integer thread ID rather than the Rust thread ID, which should also be what debuggers print.
2025-07-23Add `ignore-backends` annotations in failing GCC backend ui testsGuillaume Gomez-0/+3
2025-07-11Rollup merge of #143303 - Kivooeo:tf28, r=tgross35Matthias Krüger-0/+110
`tests/ui`: A New Order [28/28] FINAL PART > [!NOTE] > > Intermediate commits are intended to help review, but will be squashed prior to merge. Some `tests/ui/` housekeeping, to trim down number of tests directly under `tests/ui/`. Part of rust-lang/rust#133895. r? ``@tgross35``
2025-07-10cleaned up some testsKivooeo-30/+41
2025-07-02awhile -> a while where appropriateнаб-1/+1
2025-07-01moved testsKivooeo-0/+99
2025-03-24Test Command::current_dir with verbatim pathChris Denton-0/+36
2025-02-26Fix Windows `Command` search path bugChris Denton-0/+72
2025-02-18Use `yes` except target_os = "nto".Xing Xue-5/+12
2025-02-07Move two windows process tests to tests/uiChris Denton-0/+169
2025-01-23tests: use `needs-threads` instead of `ignore-emscripten`许杰友 Jieyou Xu (Joe)-1/+1
2025-01-23tests: use `needs-subprocess` instead of `ignore-{wasm32,emscripten,sgx}`许杰友 Jieyou Xu (Joe)-26/+14
2025-01-23tests: cleanup `tests/ui/process/issue-13304.rs`许杰友 Jieyou Xu (Joe)-4/+2
- Remove unnecessary `mut`, remove `#[allow(unused_mut)]`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/sigpipe-should-be-ignored.rs`许杰友 Jieyou Xu (Joe)-5/+2
- Unwrap a must-use I/O result and remove `#![allow(unused_must_use)]`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/try-wait.rs`许杰友 Jieyou Xu (Joe)-5/+1
- Remove already stable feature gate and remove `#![allow(stable_features)]`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/issue-14456.rs`许杰友 Jieyou Xu (Joe)-4/+2
- Remove unnecessary `mut` and remove `#![allow(unused_mut)]`. - Replace `ignore-*` with `needs-process`.
2025-01-23tests: cleanup `tests/ui/process/process-panic-after-fork.rs`许杰友 Jieyou Xu (Joe)-3/+2
- Replace `ignore-windows` with `only-unix`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/fds-are-cloexec.rs`许杰友 Jieyou Xu (Joe)-3/+2
- Replace `ignore-windows` with `only-unix`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/process-exit.rs`许杰友 Jieyou Xu (Joe)-4/+2
- Remove unnecessary `#![allow(unused_imports)]`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/issue-20091.rs`许杰友 Jieyou Xu (Joe)-5/+1
- Remove already stable feature gate and remove `#![allow(stable_features)]`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/signal-exit-status.rs`许杰友 Jieyou Xu (Joe)-3/+2
- Replace `ignore-windows` -> `only-unix` since the test exercises Unix signals and `ExitStatus::code` behavior that's specific to Unix. - Replace `ignore-*` with `needs-subprocess`.
2025-01-23tests: cleanup `tests/ui/process/core-run-destroy.rs`许杰友 Jieyou Xu (Joe)-3/+2
- Remove redundant `#![allow(stable_features)]`. - Replace `ignore-*` with `needs-subprocess`.
2025-01-01Try to write the panic message with a single `write_all` callJohn Kåre Alsaker-12/+21
2024-12-27Remove the `-test` suffix from normalize directivesZalathar-1/+1
2024-12-02Use c"lit" for CStrings without unwrapKornel-2/+2
2024-11-30bless tests for changed library pathRalf Jung-1/+1
2024-10-15Fix most ui tests on emscripten targetHood Chatham-6/+2
To fix the linker errors, we need to set the output extension to `.js` instead of `.wasm`. Setting the output to a `.wasm` file puts Emscripten into standalone mode which is effectively a distinct target. We need to set the runner to be `node` as well. This fixes most of the ui tests. I fixed a few more tests with simple problems: - `intrinsics/intrinsic-alignment.rs` and `structs-enums/rec-align-u64.rs` -- Two `#[cfg]` macros match for Emscripten so we got a duplicate definition of `mod m`. - `issues/issue-12699.rs` -- Seems to hang so I disabled it - `process/process-sigpipe.rs` -- Not expected to work on Emscripten so I disabled it
2024-08-02Bless testsbjorn3-1/+1
2024-07-11Always use a colon in `//@ normalize-*:` headersZalathar-1/+1
2024-05-20Move 100 entries from tests/ui into subdirsJubilee Young-0/+151
- Move super-fast-paren-parsing test into ui/parser - Move stmt_expr_attrs test into ui/feature-gates - Move macro tests into ui/macros - Move global_asm tests into ui/asm - Move env tests into ui/process - Move xcrate tests into ui/cross-crate - Move unop tests into ui/unop - Move backtrace tests into ui/backtrace - Move check-static tests into ui/statics - Move expr tests into ui/expr - Move optimization fuel tests into ui/fuel - Move ffi attribute tests into ui/ffi-attrs - Move suggestion tests into ui/suggestions - Move main tests into ui/fn-main - Move lint tests into ui/lint - Move repr tests into ui/repr - Move intrinsics tests into ui/intrinsics - Move tool lint tests into ui/tool-attributes - Move return tests into ui/return - Move pattern tests into ui/patttern - Move range tests into ui/range - Move foreign-fn tests into ui/foreign - Move orphan-check tests into ui/coherence - Move inference tests into ui/inference - Reduce ROOT_ENTRY_LIMIT
2024-05-20Handle a few more simple testsBen Kimock-3/+5
2024-05-02Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`Martin Nordholts-3/+1
In the stabilization attempt of `#[unix_sigpipe = "sig_dfl"]`, a concern was raised related to using a language attribute for the feature: Long term, we want `fn lang_start()` to be definable by any crate, not just libstd. Having a special language attribute in that case becomes awkward. So as a first step towards towards the next stabilization attempt, this PR changes the `#[unix_sigpipe = "..."]` attribute to a compiler flag `-Zon-broken-pipe=...` to remove that concern, since now the language is not "contaminated" by this feature. Another point was also raised, namely that the ui should not leak **how** it does things, but rather what the **end effect** is. The new flag uses the proposed naming. This is of course something that can be iterated on further before stabilization.
2024-04-15Use the rustc_private libc less in testsBen Kimock-6/+1
2024-03-11Update test directives for `wasm32-wasip1`Alex Crichton-26/+21
* The WASI targets deal with the `main` symbol a bit differently than native so some `codegen` and `assembly` tests have been ignored. * All `ignore-emscripten` directives have been updated to `ignore-wasm32` to be more clear that all wasm targets are ignored and it's not just Emscripten. * Most `ignore-wasm32-bare` directives are now gone. * Some ignore directives for wasm were switched to `needs-unwind` instead. * Many `ignore-wasm32*` directives are removed as the tests work with WASI as opposed to `wasm32-unknown-unknown`.
2024-03-03Move testsCaio-0/+102
2024-02-16[AUTO-GENERATED] Migrate ui tests from `//` to `//@` directives许杰友 Jieyou Xu (Joe)-101/+101
2024-01-05Remove revisions for THIR unsafeckMatthew Jasper-2/+0
This is to make the diff when stabilizing it easier to review.
2023-07-29Fix tests.Mara Bos-1/+2
2023-07-29Change default panic handler message format.Mara Bos-1/+3
2023-07-26Regression test `println!()` panic message on `ErrorKind::BrokenPipe`Martin Nordholts-0/+47
No existing test failed if the [`panic!()`][1] of the `println!()` family of functions was removed, or if its message was changed. So add such a test. [1] https://github.com/rust-lang/rust/blob/104f4300cfddbd956e32820ef202a732f06ec848/library/std/src/io/stdio.rs#L1007-L1009
2023-05-27Allow newly uplifted invalid_from_utf8 lintUrgau-0/+2
2023-04-26Rollup merge of #109379 - flba-eb:108596_fixtest_sigpipe, r=jyn514jyn-3/+7
Replace `yes` command by `while-echo` in test `tests/ui/process/process-sigpipe.rs` The `yes` command is not available on all platforms. Fixes #108596. Inviting `@mvf` as he contributed to this patch. Thanks! This issue has been discussed in https://github.com/rust-lang/rust/pull/106673 but was moved to #108596 to get going. CC `@gh-tr` r? `@workingjubilee` `@rustbot` label +O-neutrino Notes about the comments https://github.com/rust-lang/rust/pull/106673#discussion_r1117324265: - The `echo` command is `/proc/boot/echo` (not built-in) - `/bin/sh` is a symlink to `/proc/boot/ksh` ```sh # ls -l /bin/sh /proc/boot/ksh /proc/boot/echo lrwxrwxrwx 1 root root 14 Mar 20 07:52 /bin/sh -> /proc/boot/ksh -r-xr-xr-x 1 root root 9390 Sep 12 2022 /proc/boot/echo -r-xr-xr-x 1 root root 308114 Sep 12 2022 /proc/boot/ksh ```
2023-03-28Raise an aborting signal without UBBen Kimock-2/+4
2023-03-20Replace `yes` command by `while-echo`Florian Bartels-3/+7
The `yes` command is not available on all platforms.
2023-02-28Add QNX Neutrino support to libstdFlorian Bartels-0/+1
Co-authored-by: gh-tr <troach@qnx.com>
2023-01-11Move /src/test to /testsAlbert Larsan-0/+1149