Skip to content

Commit 23358c3

Browse files
committed
unix_sigpipe: Combine unix_sigpipe-not-used.rs and unix_sigpipe-only-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.
1 parent bbe3835 commit 23358c3

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)