@@ -7,12 +7,10 @@ use uutests::util::TestScenario;
7
7
use uutests:: util_name;
8
8
9
9
#[ test]
10
- #[ cfg( not( windows) ) ]
11
10
fn test_invalid_arg ( ) {
12
11
new_ucmd ! ( ) . arg ( "--definitely-invalid" ) . fails_with_code ( 1 ) ;
13
12
}
14
13
15
- #[ cfg( not( windows) ) ]
16
14
#[ test]
17
15
fn test_mknod_help ( ) {
18
16
new_ucmd ! ( )
@@ -23,7 +21,6 @@ fn test_mknod_help() {
23
21
}
24
22
25
23
#[ test]
26
- #[ cfg( not( windows) ) ]
27
24
fn test_mknod_version ( ) {
28
25
assert ! (
29
26
new_ucmd!( )
@@ -36,7 +33,6 @@ fn test_mknod_version() {
36
33
}
37
34
38
35
#[ test]
39
- #[ cfg( not( windows) ) ]
40
36
fn test_mknod_fifo_default_writable ( ) {
41
37
let ts = TestScenario :: new ( util_name ! ( ) ) ;
42
38
ts. ucmd ( ) . arg ( "test_file" ) . arg ( "p" ) . succeeds ( ) ;
@@ -45,15 +41,13 @@ fn test_mknod_fifo_default_writable() {
45
41
}
46
42
47
43
#[ test]
48
- #[ cfg( not( windows) ) ]
49
44
fn test_mknod_fifo_mnemonic_usage ( ) {
50
45
let ts = TestScenario :: new ( util_name ! ( ) ) ;
51
46
ts. ucmd ( ) . arg ( "test_file" ) . arg ( "pipe" ) . succeeds ( ) ;
52
47
assert ! ( ts. fixtures. is_fifo( "test_file" ) ) ;
53
48
}
54
49
55
50
#[ test]
56
- #[ cfg( not( windows) ) ]
57
51
fn test_mknod_fifo_read_only ( ) {
58
52
let ts = TestScenario :: new ( util_name ! ( ) ) ;
59
53
ts. ucmd ( )
@@ -67,7 +61,6 @@ fn test_mknod_fifo_read_only() {
67
61
}
68
62
69
63
#[ test]
70
- #[ cfg( not( windows) ) ]
71
64
fn test_mknod_fifo_invalid_extra_operand ( ) {
72
65
new_ucmd ! ( )
73
66
. arg ( "test_file" )
@@ -79,7 +72,6 @@ fn test_mknod_fifo_invalid_extra_operand() {
79
72
}
80
73
81
74
#[ test]
82
- #[ cfg( not( windows) ) ]
83
75
fn test_mknod_character_device_requires_major_and_minor ( ) {
84
76
new_ucmd ! ( )
85
77
. arg ( "test_file" )
@@ -109,7 +101,6 @@ fn test_mknod_character_device_requires_major_and_minor() {
109
101
}
110
102
111
103
#[ test]
112
- #[ cfg( not( windows) ) ]
113
104
fn test_mknod_invalid_arg ( ) {
114
105
new_ucmd ! ( )
115
106
. arg ( "--foo" )
@@ -119,7 +110,6 @@ fn test_mknod_invalid_arg() {
119
110
}
120
111
121
112
#[ test]
122
- #[ cfg( not( windows) ) ]
123
113
fn test_mknod_invalid_mode ( ) {
124
114
new_ucmd ! ( )
125
115
. arg ( "--mode" )
0 commit comments