Skip to content

Commit

Permalink
unix_sigpipe: Combine unix_sigpipe-not-used.rs and unix_sigpipe-only-…
Browse files Browse the repository at this point in the history
…feature.rs

The only difference between the files is the present of the feature
attribute. Avoid duplication by using revisions instead. Later commits
will make more use of revisions.
  • Loading branch information
Enselic committed Feb 9, 2024
1 parent bbe3835 commit 23358c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 13 deletions.
3 changes: 3 additions & 0 deletions tests/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
// revisions: with_feature without_feature
// run-pass
// aux-build:sigpipe-utils.rs

#![cfg_attr(with_feature, feature(unix_sigpipe))]

fn main() {
extern crate sigpipe_utils;

Expand Down
13 changes: 0 additions & 13 deletions tests/ui/attributes/unix_sigpipe/unix_sigpipe-only-feature.rs

This file was deleted.

0 comments on commit 23358c3

Please sign in to comment.