@@ -18,7 +18,6 @@ fn test_invalid_arg() {
18
18
}
19
19
20
20
#[ test]
21
- #[ cfg( unix) ]
22
21
#[ allow( unused_mut) ]
23
22
fn test_id_no_specified_user ( ) {
24
23
let ts = TestScenario :: new ( util_name ! ( ) ) ;
@@ -44,7 +43,6 @@ fn test_id_no_specified_user() {
44
43
}
45
44
46
45
#[ test]
47
- #[ cfg( unix) ]
48
46
fn test_id_single_user ( ) {
49
47
let test_users = [ & whoami ( ) [ ..] ] ;
50
48
@@ -96,7 +94,6 @@ fn test_id_single_user() {
96
94
}
97
95
98
96
#[ test]
99
- #[ cfg( unix) ]
100
97
fn test_id_single_user_non_existing ( ) {
101
98
let args = & [ "hopefully_non_existing_username" ] ;
102
99
let ts = TestScenario :: new ( util_name ! ( ) ) ;
@@ -114,7 +111,6 @@ fn test_id_single_user_non_existing() {
114
111
}
115
112
116
113
#[ test]
117
- #[ cfg( unix) ]
118
114
fn test_id_name ( ) {
119
115
let ts = TestScenario :: new ( util_name ! ( ) ) ;
120
116
for opt in [ "--user" , "--group" , "--groups" ] {
@@ -133,7 +129,6 @@ fn test_id_name() {
133
129
}
134
130
135
131
#[ test]
136
- #[ cfg( unix) ]
137
132
fn test_id_real ( ) {
138
133
let ts = TestScenario :: new ( util_name ! ( ) ) ;
139
134
for opt in [ "--user" , "--group" , "--groups" ] {
@@ -148,7 +143,7 @@ fn test_id_real() {
148
143
}
149
144
150
145
#[ test]
151
- #[ cfg( all ( unix , not( any( target_os = "linux" , target_os = "android" ) ) ) ) ]
146
+ #[ cfg( not( any( target_os = "linux" , target_os = "android" ) ) ) ]
152
147
fn test_id_pretty_print ( ) {
153
148
// `-p` is BSD only and not supported on GNU's `id`
154
149
let username = whoami ( ) ;
@@ -157,7 +152,7 @@ fn test_id_pretty_print() {
157
152
}
158
153
159
154
#[ test]
160
- #[ cfg( all ( unix , not( any( target_os = "linux" , target_os = "android" ) ) ) ) ]
155
+ #[ cfg( not( any( target_os = "linux" , target_os = "android" ) ) ) ]
161
156
fn test_id_password_style ( ) {
162
157
// `-P` is BSD only and not supported on GNU's `id`
163
158
let username = whoami ( ) ;
@@ -166,7 +161,6 @@ fn test_id_password_style() {
166
161
}
167
162
168
163
#[ test]
169
- #[ cfg( unix) ]
170
164
fn test_id_multiple_users ( ) {
171
165
unwrap_or_return ! ( check_coreutil_version(
172
166
util_name!( ) ,
@@ -224,7 +218,6 @@ fn test_id_multiple_users() {
224
218
}
225
219
226
220
#[ test]
227
- #[ cfg( unix) ]
228
221
fn test_id_multiple_users_non_existing ( ) {
229
222
unwrap_or_return ! ( check_coreutil_version(
230
223
util_name!( ) ,
@@ -302,7 +295,6 @@ fn test_id_name_or_real_with_default_format() {
302
295
}
303
296
304
297
#[ test]
305
- #[ cfg( unix) ]
306
298
fn test_id_default_format ( ) {
307
299
let ts = TestScenario :: new ( util_name ! ( ) ) ;
308
300
for opt1 in [ "--name" , "--real" ] {
@@ -355,7 +347,6 @@ fn test_id_zero_with_name_or_real() {
355
347
}
356
348
357
349
#[ test]
358
- #[ cfg( unix) ]
359
350
fn test_id_zero ( ) {
360
351
let ts = TestScenario :: new ( util_name ! ( ) ) ;
361
352
for z_flag in [ "-z" , "--zero" ] {
@@ -444,7 +435,6 @@ fn test_id_context() {
444
435
}
445
436
446
437
#[ test]
447
- #[ cfg( unix) ]
448
438
fn test_id_no_specified_user_posixly ( ) {
449
439
// gnu/tests/id/no-context.sh
450
440
@@ -471,7 +461,7 @@ fn test_id_no_specified_user_posixly() {
471
461
}
472
462
473
463
#[ test]
474
- #[ cfg( all ( unix , not( target_os = "android" ) ) ) ]
464
+ #[ cfg( not( target_os = "android" ) ) ]
475
465
fn test_id_pretty_print_password_record ( ) {
476
466
// `-p` is BSD only and not supported on GNU's `id`.
477
467
// `-P` is our own extension, and not supported by either GNU nor BSD.
0 commit comments