rust/tests/ui/attributes/unix_sigpipe
Guillaume Gomez d8e6550838
Rollup merge of #121527 - Enselic:unix_sigpipe-tests-fixes, r=davidtwco
unix_sigpipe: Simple fixes and improvements in tests

In https://github.com/rust-lang/rust/pull/120832 I included 5 preparatory commits.

It will take a while before discussions there and in https://github.com/rust-lang/rust/issues/62569 is settled, so here is a PR that splits out 4 of the commits that are easy to review, to get them out of the way.

r? ``@davidtwco`` who already approved these commits in https://github.com/rust-lang/rust/pull/120832 (but I have tweaked them a bit and rebased them since then).

For the convenience of my reviewer, here are the full commit messages of the commits:
<details>
<summary>Click to expand</summary>

```
commit 948b1d68ab (HEAD -> unix_sigpipe-tests-fixes, origin/unix_sigpipe-tests-fixes)
Author: Martin Nordholts <martin.nordholts@codetale.se>
Date:   Fri Feb 9 07:57:27 2024 +0100

    tests: Add unix_sigpipe-different-duplicates.rs test variant

    To make sure that

        #[unix_sigpipe = "x"]
        #[unix_sigpipe = "y"]

    behaves like

        #[unix_sigpipe = "x"]
        #[unix_sigpipe = "x"]

commit d14f15862d
Author: Martin Nordholts <martin.nordholts@codetale.se>
Date:   Fri Feb 9 08:47:47 2024 +0100

    tests: Combine unix_sigpipe-not-used.rs and unix_sigpipe-only-feature.rs

    The only difference between the files is the presence/absence of

        #![feature(unix_sigpipe)]

    attribute. Avoid duplication by using revisions instead.

commit a1cb3dba84
Author: Martin Nordholts <martin.nordholts@codetale.se>
Date:   Fri Feb 9 06:44:56 2024 +0100

    tests: Rename unix_sigpipe.rs to unix_sigpipe-bare.rs for clarity

    The test is for the "bare" variant of the attribute that looks like this:

        #[unix_sigpipe]

    which is not allowed, because it must look like this:

        #[unix_sigpipe = "sig_ign"]

commit e060274e55
Author: Martin Nordholts <martin.nordholts@codetale.se>
Date:   Fri Feb 9 05:48:24 2024 +0100

    tests: Fix typo unix_sigpipe-error.rs -> unix_sigpipe-sig_ign.rs

    There is no error expected. It's simply the "regular" test for sig_ign.
    So rename it.
```

</details>

Tracking issue: https://github.com/rust-lang/rust/issues/97889
2024-02-28 16:04:50 +01:00
..
auxiliary Don't unnecessarily change SIGPIPE disposition in unix_sigpipe tests 2024-02-24 16:18:34 +01:00
unix_sigpipe-bare.rs tests: Rename unix_sigpipe.rs to unix_sigpipe-bare.rs for clarity 2024-02-23 22:02:27 +01:00
unix_sigpipe-bare.stderr tests: Rename unix_sigpipe.rs to unix_sigpipe-bare.rs for clarity 2024-02-23 22:02:27 +01:00
unix_sigpipe-crate.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-crate.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unix_sigpipe-different-duplicates.rs tests: Add unix_sigpipe-different-duplicates.rs test variant 2024-02-23 22:03:09 +01:00
unix_sigpipe-different-duplicates.stderr tests: Add unix_sigpipe-different-duplicates.rs test variant 2024-02-23 22:03:09 +01:00
unix_sigpipe-duplicates.rs tests: Add unix_sigpipe-different-duplicates.rs test variant 2024-02-23 22:03:09 +01:00
unix_sigpipe-duplicates.stderr tests: Add unix_sigpipe-different-duplicates.rs test variant 2024-02-23 22:03:09 +01:00
unix_sigpipe-inherit.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unix_sigpipe-list.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-list.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unix_sigpipe-non-main-fn.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-non-main-fn.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unix_sigpipe-non-root-main.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-non-root-main.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unix_sigpipe-not-used.rs tests: Combine unix_sigpipe-not-used.rs and unix_sigpipe-only-feature.rs 2024-02-23 22:03:09 +01:00
unix_sigpipe-rustc_main.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unix_sigpipe-sig_dfl.rs [AUTO-GENERATED] Migrate ui tests from // to //@ directives 2024-02-16 20:02:50 +00:00
unix_sigpipe-sig_ign.rs tests: Fix typo unix_sigpipe-error.rs -> unix_sigpipe-sig_ign.rs 2024-02-23 21:59:35 +01:00
unix_sigpipe-start.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-start.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unix_sigpipe-struct.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-struct.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00
unix_sigpipe-wrong.rs Move /src/test to /tests 2023-01-11 09:32:08 +00:00
unix_sigpipe-wrong.stderr Show number in error message even for one error 2023-11-24 19:15:52 +01:00