diff options
Diffstat (limited to 'ext/-test-')
-rw-r--r-- | ext/-test-/integer/core_ext.c (renamed from ext/-test-/testutil/integer.c) | 2 | ||||
-rw-r--r-- | ext/-test-/testutil/extconf.rb | 8 | ||||
-rw-r--r-- | ext/-test-/testutil/init.c | 11 |
3 files changed, 1 insertions, 20 deletions
diff --git a/ext/-test-/testutil/integer.c b/ext/-test-/integer/core_ext.c index da5812c616..6d64cdb0c2 100644 --- a/ext/-test-/testutil/integer.c +++ b/ext/-test-/integer/core_ext.c @@ -21,7 +21,7 @@ rb_int_to_bignum(VALUE x) } void -Init_integer(VALUE klass) +Init_core_ext(VALUE klass) { rb_define_method(rb_cInteger, "bignum?", int_bignum_p, 0); rb_define_method(rb_cInteger, "fixnum?", int_fixnum_p, 0); diff --git a/ext/-test-/testutil/extconf.rb b/ext/-test-/testutil/extconf.rb deleted file mode 100644 index 157a3d62b8..0000000000 --- a/ext/-test-/testutil/extconf.rb +++ /dev/null @@ -1,8 +0,0 @@ -# frozen_string_literal: false -$INCFLAGS << " -I$(topdir) -I$(top_srcdir)" -$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")] -inits = $srcs.map {|s| File.basename(s, ".*")} -inits.delete("init") -inits.map! {|s|"X(#{s})"} -$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\"" -create_makefile("-test-/testutil") diff --git a/ext/-test-/testutil/init.c b/ext/-test-/testutil/init.c deleted file mode 100644 index cf2804df4f..0000000000 --- a/ext/-test-/testutil/init.c +++ /dev/null @@ -1,11 +0,0 @@ -#include "ruby.h" - -#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);} - -void -Init_testutil(void) -{ - VALUE mBug = rb_define_module("Bug"); - VALUE klass = rb_define_class_under(mBug, "TestUtil", rb_cObject); - TEST_INIT_FUNCS(init); -} |