Issue #12408 has been updated by Martin Drst.

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.)

----------------------------------------
Bug #12408: cannot load such file -- -test-/testutil when trying to run tests with test/runner.rb
https://bugs.ruby-lang.org/issues/12408#change-58787

* Author: Martin Drst
* Status: Open
* Priority: Normal
* Assignee: Nobuyoshi Nakada
* ruby -v: ruby 2.4.0dev (2016-05-21 trunk 55091) [x86_64-cygwin]
* Backport: 2.1: UNKNOWN, 2.2: UNKNOWN, 2.3: UNKNOWN
----------------------------------------
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>'
```



-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request / ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>