1use rustix::thread; 2 3#[cfg(any(target_os = "android", target_os = "linux"))] 4#[test] 5fn test_gettid() { 6 assert_eq!(thread::gettid(), thread::gettid()); 7} 8