都合により、テストを ./ruby test/runner.rb と動かしたら、
以下のように失敗しました。

make install まで済ましてあるので、make test-all でなく
./ruby test/runner.rb でも動く (というか以前は動いていた) と思うのですが、
最近は違うのでしょうか。

なお、都合というのは、CLOEXEC をちゃんとつけているか調べるのに、strace を
つけて動かして確かめてみようと思ったからです。

% ./ruby test/runner.rb -q
/home/akr/ruby/tst2/ruby/test/-ext-/string/test_ellipsize.rb: cannot
load such file -- -test-/string/string
/home/akr/ruby/tst2/ruby/test/-ext-/string/test_enc_associate.rb:
cannot load such file -- -test-/string/string
/home/akr/ruby/tst2/ruby/test/-ext-/string/test_qsort.rb: cannot load
such file -- -test-/string/string
/home/akr/ruby/tst2/ruby/test/-ext-/string/test_set_len.rb: cannot
load such file -- -test-/string/string
/home/akr/ruby/tst2/ruby/test/-ext-/string/test_cstr.rb: cannot load
such file -- -test-/string/string
/home/akr/ruby/tst2/ruby/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb:
cannot load such file -- -test-/wait_for_single_fd/wait_for_single_fd
/home/akr/ruby/tst2/ruby/test/-ext-/symbol/test_inadvertent_creation.rb:
cannot load such file -- -test-/symbol/symbol
/home/akr/ruby/tst2/ruby/test/-ext-/test_bug-3662.rb: cannot load such
file -- -test-/bug-3662/bug
/home/akr/ruby/tst2/ruby/test/-ext-/old_thread_select/test_old_thread_select.rb:
cannot load such file -- -test-/old_thread_select/old_thread_select
/home/akr/ruby/tst2/ruby/test/-ext-/array/test_resize.rb: cannot load
such file -- -test-/array/resize
/home/akr/ruby/tst2/ruby/test/-ext-/funcall/test_passing_block.rb:
cannot load such file -- -test-/funcall/funcall
Run options: -q

# Running tests:

...(中略)...


Finished tests in 2521.923786s, 4.0489 tests/s, 876.2350 assertions/s.

  1) Failure:
test_self_prefix(TestGem)
[/home/akr/ruby/tst2/ruby/test/rubygems/test_gem.rb:811]:
Expected: "/home/akr/ruby/tst2/ruby"
  Actual: nil

  2) Failure:
test_execute(TestGemCommandsEnvironmentCommand)
[/home/akr/ruby/tst2/ruby/test/rubygems/test_gem_commands_environment_command.rb:27]:
Expected /RUBYGEMS PREFIX: / to match "RubyGems Environment:\n  -
RUBYGEMS VERSION: 1.8.11\n  - RUBY VERSION: 2.0.0 (2011-11-02
patchlevel -1) [x86_64-linux]\n  - INSTALLATION DIRECTORY:
/tmp/test_rubygems_14321/gemhome\n  - RUBY EXECUTABLE:
/home/akr/ruby/tst2/ruby/ruby\n  - EXECUTABLE DIRECTORY:
/tmp/test_rubygems_14321/gemhome/bin\n  - RUBYGEMS PLATFORMS:\n    -
ruby\n    - x86-darwin-8\n  - GEM PATHS:\n     -
/tmp/test_rubygems_14321/gemhome\n  - GEM CONFIGURATION:\n     -
:update_sources => true\n     - :verbose => true\n     - :benchmark =>
false\n     - :backtrace => false\n     - :bulk_threshold => 1000\n
 - \"gemcutter_key\" => \"****\"\n  - REMOTE SOURCES:\n     -
http://gems.example.com\n".

  3) Failure:
test_block_call_id(Test_BUG_3571)
[/home/akr/ruby/tst2/ruby/test/-ext-/test_bug-3571.rb:19]:
[ruby-dev:41852].
<["start() function is unimplemented on this machine",
 "-:2:in `start'",
 "-:2:in `<main>'"]> expected but was
<["/home/akr/ruby/tst2/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
`require': cannot load such file -- -test-/bug-3571/bug (LoadError)",
 "\tfrom /home/akr/ruby/tst2/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in
`require'"]>.

  4) Failure:
test_load_dot_dot(Test_DotDot)
[/home/akr/ruby/tst2/ruby/test/-ext-/load/test_dot_dot.rb:6]:
[ruby-dev:41774].
Exception raised:
<#<LoadError: cannot load such file -- -test-/load/dot.dot/dot.dot>>.

  5) Error:
test_typeof_builtin(TestMkmf::TestSignedness):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:381:in `try_do'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `block in try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:443:in `with_werror'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:550:in `try_static_assert'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1130:in `try_signedness'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1182:in `block in check_signedness'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:790:in `block in checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block (2 levels) in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:280:in `postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:789:in `checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1181:in `check_signedness'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:9:in `block
(3 levels) in test_typeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `instance_eval'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `mkmf'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:9:in `block
(2 levels) in test_typeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:8:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:8:in `block
in test_typeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:7:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:7:in
`test_typeof_builtin'

  6) Error:
test_typeof_typedef(TestMkmf::TestSignedness):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:381:in `try_do'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `block in try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:443:in `with_werror'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:550:in `try_static_assert'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1130:in `try_signedness'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1182:in `block in check_signedness'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:790:in `block in checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block (2 levels) in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:280:in `postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:789:in `checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1181:in `check_signedness'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:21:in `block
(3 levels) in test_typeof_typedef'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `instance_eval'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `mkmf'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:21:in `block
(2 levels) in test_typeof_typedef'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:16:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:16:in `block
in test_typeof_typedef'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:15:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_signedness.rb:15:in
`test_typeof_typedef'

  7) Error:
test_sizeof_builtin(TestMkmf::TestSizeof):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:381:in `try_do'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:461:in `try_link0'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:595:in `try_constant'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1156:in `block in check_sizeof'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:790:in `block in checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block (2 levels) in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:280:in `postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:789:in `checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1155:in `check_sizeof'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_sizeof.rb:16:in `block (2
levels) in test_sizeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `instance_eval'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `mkmf'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_sizeof.rb:16:in `block in
test_sizeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_sizeof.rb:15:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_sizeof.rb:15:in
`test_sizeof_builtin'

  8) Error:
test_sizeof_struct(TestMkmf::TestSizeof):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:381:in `try_do'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:461:in `try_link0'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:595:in `try_constant'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1156:in `block in check_sizeof'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:790:in `block in checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block (2 levels) in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:280:in `postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:789:in `checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1155:in `check_sizeof'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_sizeof.rb:28:in `block in
test_sizeof_struct'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `instance_eval'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `mkmf'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_sizeof.rb:28:in `test_sizeof_struct'

  9) Error:
test_ignore_jzero(TestParallel::TestParallel):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:147:in
`test_ignore_jzero'

 10) Error:
test_jobs_status(TestParallel::TestParallel):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:125:in
`spawn_runner'
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:175:in
`test_jobs_status'

 11) Error:
test_typeof_typedef(TestMkmf::TestConvertible):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:381:in `try_do'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `block in try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:443:in `with_werror'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:550:in `try_static_assert'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1130:in `try_signedness'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1217:in `block in convertible_int'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:790:in `block in checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block (2 levels) in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:280:in `postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:789:in `checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1212:in `convertible_int'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:22:in
`block (3 levels) in test_typeof_typedef'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `instance_eval'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `mkmf'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:22:in
`block (2 levels) in test_typeof_typedef'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:16:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:16:in
`block in test_typeof_typedef'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:15:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:15:in
`test_typeof_typedef'

 12) Error:
test_should_retry_failed_on_workers(TestParallel::TestParallel):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:125:in
`spawn_runner'
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:162:in
`test_should_retry_failed_on_workers'

 13) Error:
test_should_run_all_without_any_leaks(TestParallel::TestParallel):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:125:in
`spawn_runner'
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:156:in
`test_should_run_all_without_any_leaks'

 14) Error:
test_accept_run_command_multiple_times(TestParallel::TestParallelWorker):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:14:in `setup'

 15) Error:
test_done(TestParallel::TestParallelWorker):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:14:in `setup'

 16) Error:
test_p(TestParallel::TestParallelWorker):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:14:in `setup'

 17) Error:
test_quit(TestParallel::TestParallelWorker):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:14:in `setup'

 18) Error:
test_run(TestParallel::TestParallelWorker):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:14:in `setup'

 19) Error:
test_run_multiple_testcase_in_one_file(TestParallel::TestParallelWorker):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:14:in `setup'

 20) Error:
test_typeof_builtin(TestMkmf::TestConvertible):
RuntimeError: The compiler failed to generate an executable file.
You have to install development tools first.

    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:381:in `try_do'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `block in try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:443:in `with_werror'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:491:in `try_compile'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:550:in `try_static_assert'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1130:in `try_signedness'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1217:in `block in convertible_int'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:790:in `block in checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block (2 levels) in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:284:in `block in postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:254:in `open'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:280:in `postpone'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:789:in `checking_for'
    /home/akr/ruby/tst2/ruby/lib/mkmf.rb:1212:in `convertible_int'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:9:in `block
(3 levels) in test_typeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `instance_eval'
    /home/akr/ruby/tst2/ruby/test/mkmf/base.rb:117:in `mkmf'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:9:in `block
(2 levels) in test_typeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:7:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:7:in `block
in test_typeof_builtin'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:6:in `each'
    /home/akr/ruby/tst2/ruby/test/mkmf/test_convertible.rb:6:in
`test_typeof_builtin'

 21) Error:
test_no_retry_option(TestParallel::TestParallel):
NoMethodError: undefined method `join' for "/home/akr/ruby/tst2/bin/ruby":String
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:125:in
`spawn_runner'
    /home/akr/ruby/tst2/ruby/test/testunit/test_parallel.rb:168:in
`test_no_retry_option'

10211 tests, 2209798 assertions, 4 failures, 17 errors, 45 skips

ruby -v: ruby 2.0.0dev (2011-11-02 trunk 33611) [x86_64-linux]
-- 
[田中 哲][たなか あきら][Tanaka Akira]