Skip to content

Commit

Permalink
tests: Combine unix_sigpipe-not-used.rs and unix_sigpipe-only-feature.rs
Browse files Browse the repository at this point in the history
The only difference between the files is the presence/absence of

    #![feature(unix_sigpipe)]

attribute. Avoid duplication by using revisions instead.
  • Loading branch information
Enselic committed Feb 23, 2024
1 parent a1cb3db commit d14f158
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 d14f158

Please sign in to comment.