summaryrefslogtreecommitdiff
path: root/ext/-test-/dir/extconf.rb
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-29 22:28:47 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-05-29 22:28:47 +0000
commit83ead3c4a7dc2670bad06745eaccbdd0a9397f46 (patch)
treeec13c5f7f36b09fb6222ae2ecc9e843b3032e2d0 /ext/-test-/dir/extconf.rb
parentfae18c95be272b2ddb504aa5d26912ccfce84ef6 (diff)
* ext/-test-/dir: Dir#fileno implemented.
* test/lib/minitest/unit.rb (find_fds): Don't return the fd used to scan /proc/$$/fd. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@46240 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/-test-/dir/extconf.rb')
-rw-r--r--ext/-test-/dir/extconf.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/ext/-test-/dir/extconf.rb b/ext/-test-/dir/extconf.rb
new file mode 100644
index 00000000000..ce4aad142ae
--- /dev/null
+++ b/ext/-test-/dir/extconf.rb
@@ -0,0 +1,9 @@
+have_func("dirfd")
+
+$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-/dir")