Skip to content

Commit 9e3c2f1

Browse files
Socialprankersylvestre
authored andcommitted
tests/wc: put wasi_ignore above #[test] so the stdin tests are skipped on WASI
1 parent 68340fb commit 9e3c2f1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎tests/by-util/test_wc.rs‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ fn test_multiple_default() {
242242
/// A stream of unknown length falls back to the minimum width, but a regular
243243
/// file redirected onto stdin has a size known up front, so it dictates the
244244
/// width just like a named file does.
245-
#[test]
246245
// `at_and_ucmd!` is only imported on unix in this file.
247246
#[cfg(unix)]
248247
#[uutests::wasi_ignore(StdioHandlesOpaque)]
248+
#[test]
249249
fn test_stdin_size_dictates_width() {
250250
use std::fs::File;
251251

@@ -886,8 +886,8 @@ fn test_count_bytes_from_partial_stdin_offset(#[case] size: u64, #[case] offset:
886886
}
887887

888888
#[cfg(unix)]
889-
#[test]
890889
#[uutests::wasi_ignore(StdioHandlesOpaque)]
890+
#[test]
891891
fn test_count_bytes_from_repeated_redirected_stdin() {
892892
use std::io::Seek;
893893
let (at, mut command) = at_and_ucmd!();

0 commit comments

Comments
 (0)