Actions
Bug #12408
closedcannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
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>'
Updated by nobu (Nobuyoshi Nakada) almost 8 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) almost 8 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) almost 8 years ago
BTW, do I have to use make runnable
before every test, or after every make install-nodoc
or when?
Updated by nobu (Nobuyoshi Nakada) almost 8 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) almost 8 years ago
- Backport changed from 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN to 2.1: DONTNEED, 2.2: DONTNEED, 2.3: DONTNEED
Updated by duerst (Martin Dürst) almost 8 years ago
- Related to Bug #12472: No rule to make target `un-runnable', needed by `runnable' added
Actions
Like0
Like0Like0Like0Like0Like0Like0