summaryrefslogtreecommitdiff
path: root/test/sys
diff options
context:
space:
mode:
authorMartin Kröning <mkroening@posteo.net>2021-07-24 22:45:46 +0200
committerMartin Kröning <mkroening@posteo.net>2021-07-24 22:45:46 +0200
commit3d5d369665430d5545dfb583a7cc6d0b81b7e759 (patch)
tree954b5f94360294c7cc6e37b78c8b0216f61b37e0 /test/sys
parent7033d470d000a35236f157258c13dd50bc64725a (diff)
downloadnix-3d5d369665430d5545dfb583a7cc6d0b81b7e759.zip
Add pthread_kill
Diffstat (limited to 'test/sys')
-rw-r--r--test/sys/test_pthread.rs7
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.");
+}