Project

General

Profile

Actions

Bug #12408

closed

cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb

Added by duerst (Martin Dürst) over 5 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
ruby 2.4.0dev (2016-05-21 trunk 55091) [x86_64-cygwin]
[ruby-core:75647]

Description

When I try to run some individual tests with test/runner.rb, I get an error like this:

$ ruby test/runner.rb test/ruby/test_ifunless.rb
/usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require': cannot load such file -- -test-/testutil (LoadError)
        from /usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /cygdrive/c/Data/ruby/test/lib/test/unit.rb:11:in `<top (required)>'
        from /usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from /usr/local/lib/ruby/2.4.0/rubygems/core_ext/kernel_require.rb:55:in `require'
        from test/runner.rb:13:in `<main>'

Related issues

Related to Ruby master - Bug #12472: No rule to make target `un-runnable', needed by `runnable'Closednobu (Nobuyoshi Nakada)Actions

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Open to Closed

You have to run tests with the built ruby, not installed one.
make runnable and use ./bin/ruby.exe.

Updated by duerst (Martin Dürst) over 5 years ago

  • Status changed from Closed to Open

Nobuyoshi Nakada wrote:

You have to run tests with the built ruby, not installed one.
make runnable and use ./bin/ruby.exe.

Thanks, this works. But it used to work without make runnable and without ./bin/ruby until a few days ago. Why does it suddenly have to be more complicated?

(I even remember that you told me to use ruby test/runner.rb ... some time ago.)

Updated by duerst (Martin Dürst) over 5 years ago

BTW, do I have to use make runnable before every test, or after every make install-nodoc or when?

Actions #4

Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Status changed from Open to Closed

Applied in changeset r55114.


-test-/integer

  • ext/-test-/integer/core_ext.c: move testutil/integer.c.
  • test/lib/-test-/integer.rb: extract implementation details from test/unit/assertions.rb. [Bug #12408]

Updated by usa (Usaku NAKAMURA) over 5 years ago

  • Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
Actions #6

Updated by duerst (Martin Dürst) over 5 years ago

  • Related to Bug #12472: No rule to make target `un-runnable', needed by `runnable' added
Actions

Also available in: Atom PDF