@@ -25,7 +25,7 @@ fn test_explicit_close() {
25
25
26
26
/// Test equivalence of `ptsname` and `ptsname_r`
27
27
#[ test]
28
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
28
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "macos" , target_os = "ios" ) ) ]
29
29
fn test_ptsname_equivalence ( ) {
30
30
#[ allow( unused_variables) ]
31
31
let m = :: PTSNAME_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
@@ -43,7 +43,7 @@ fn test_ptsname_equivalence() {
43
43
/// Test data copying of `ptsname`
44
44
// TODO need to run in a subprocess, since ptsname is non-reentrant
45
45
#[ test]
46
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
46
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "macos" , target_os = "ios" ) ) ]
47
47
fn test_ptsname_copy ( ) {
48
48
#[ allow( unused_variables) ]
49
49
let m = :: PTSNAME_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
@@ -63,7 +63,7 @@ fn test_ptsname_copy() {
63
63
64
64
/// Test data copying of `ptsname_r`
65
65
#[ test]
66
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
66
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "macos" , target_os = "ios" ) ) ]
67
67
fn test_ptsname_r_copy ( ) {
68
68
// Open a new PTTY master
69
69
let master_fd = posix_openpt ( O_RDWR ) . unwrap ( ) ;
@@ -78,7 +78,7 @@ fn test_ptsname_r_copy() {
78
78
79
79
/// Test that `ptsname` returns different names for different devices
80
80
#[ test]
81
- #[ cfg( any( target_os = "android" , target_os = "linux" ) ) ]
81
+ #[ cfg( any( target_os = "android" , target_os = "linux" , target_os = "macos" , target_os = "ios" ) ) ]
82
82
fn test_ptsname_unique ( ) {
83
83
#[ allow( unused_variables) ]
84
84
let m = :: PTSNAME_MTX . lock ( ) . expect ( "Mutex got poisoned by another test" ) ;
0 commit comments