diff options
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."); +} |