Skip to content

Commit d14f158

Browse files
committed
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.
1 parent a1cb3db commit d14f158

File tree

2 files changed

+3
-13
lines changed

2 files changed

+3
-13
lines changed

tests/ui/attributes/unix_sigpipe/unix_sigpipe-not-used.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
//@ revisions: with_feature without_feature
12
//@ run-pass
23
//@ aux-build:sigpipe-utils.rs
34

5+
#![cfg_attr(with_feature, feature(unix_sigpipe))]
6+
47
fn main() {
58
extern crate sigpipe_utils;
69

tests/ui/attributes/unix_sigpipe/unix_sigpipe-only-feature.rs

-13
This file was deleted.

0 commit comments

Comments
 (0)