summaryrefslogtreecommitdiff
path: root/spec/ruby/optional/capi/ext
diff options
context:
space:
mode:
authorBenoit Daloze <eregontp@gmail.com>2020-10-26 08:06:33 +0100
committerBenoit Daloze <eregontp@gmail.com>2020-10-26 08:06:33 +0100
commitba24aee2924dcbe1724e2d78f8b19fdede0cd95c (patch)
tree535b9cbb08e8731c663ce780f467b3deaa0e249a /spec/ruby/optional/capi/ext
parent507af7541574d3c7f0e5d990b9de0011cb49a35d (diff)
Remove spec which is too difficult to get working with various compilers
* The spec means to use an actual system library function, not a wrapper.
Diffstat (limited to 'spec/ruby/optional/capi/ext')
-rw-r--r--spec/ruby/optional/capi/ext/thread_spec.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/spec/ruby/optional/capi/ext/thread_spec.c b/spec/ruby/optional/capi/ext/thread_spec.c
index d69c463ef4..21f98dec52 100644
--- a/spec/ruby/optional/capi/ext/thread_spec.c
+++ b/spec/ruby/optional/capi/ext/thread_spec.c
@@ -75,15 +75,6 @@ static void* blocking_gvl_func_for_udf_io(void *data) {
}
}
-static void* ubf_pid(void *_) {
- return (void *) (SIGNED_VALUE) getpid();
-}
-
-static VALUE thread_spec_rb_thread_call_without_gvl_native_function(VALUE self) {
- rb_pid_t ret = (rb_pid_t) (SIGNED_VALUE) rb_thread_call_without_gvl(ubf_pid, 0, RUBY_UBF_IO, 0);
- return LONG2FIX(ret);
-}
-
/* Returns true if the thread is interrupted. */
static VALUE thread_spec_rb_thread_call_without_gvl_with_ubf_io(VALUE self) {
int fds[2];
@@ -145,7 +136,6 @@ void Init_thread_spec(void) {
VALUE cls = rb_define_class("CApiThreadSpecs", rb_cObject);
rb_define_method(cls, "rb_thread_alone", thread_spec_rb_thread_alone, 0);
rb_define_method(cls, "rb_thread_call_without_gvl", thread_spec_rb_thread_call_without_gvl, 0);
- rb_define_method(cls, "rb_thread_call_without_gvl_native_function", thread_spec_rb_thread_call_without_gvl_native_function, 0);
rb_define_method(cls, "rb_thread_call_without_gvl_with_ubf_io", thread_spec_rb_thread_call_without_gvl_with_ubf_io, 0);
rb_define_method(cls, "rb_thread_current", thread_spec_rb_thread_current, 0);
rb_define_method(cls, "rb_thread_local_aref", thread_spec_rb_thread_local_aref, 2);