diff options
author | Martin Kröning <mkroening@posteo.net> | 2021-07-24 22:45:46 +0200 |
---|---|---|
committer | Martin Kröning <mkroening@posteo.net> | 2021-07-24 22:45:46 +0200 |
commit | 3d5d369665430d5545dfb583a7cc6d0b81b7e759 (patch) | |
tree | 954b5f94360294c7cc6e37b78c8b0216f61b37e0 /test/sys | |
parent | 7033d470d000a35236f157258c13dd50bc64725a (diff) | |
download | nix-3d5d369665430d5545dfb583a7cc6d0b81b7e759.zip |
Add pthread_kill
Diffstat (limited to 'test/sys')
-rw-r--r-- | test/sys/test_pthread.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/sys/test_pthread.rs b/test/sys/test_pthread.rs index 1fc3dd90..fa9b510e 100644 --- a/test/sys/test_pthread.rs +++ b/test/sys/test_pthread.rs @@ -13,3 +13,10 @@ fn test_pthread_self() { let tid = pthread_self(); assert!(tid != 0); } + +#[test] +#[cfg(not(target_os = "redox"))] +fn test_pthread_kill_none() { + pthread_kill(pthread_self(), None) + .expect("Should be able to send signal to my thread."); +} |