diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-03 15:30:02 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-03-03 15:30:02 +0900 |
commit | 6b46057e5c9524e11c004a541bb17a5871767d44 (patch) | |
tree | ce8d23c642eeacb610ec23820f1076468ff26a85 /tool | |
parent | 680bd9027f8cb7977bbc216609db2f4e3cf199a8 (diff) | |
download | ruby-6b46057e5c9524e11c004a541bb17a5871767d44.tar.gz |
Expand the test directory to real path
When the test source directory path contains symbolic links, that
directory might be placed earlier in the result of
`IRB::InputCompletor.retrieve_gem_and_system_load_path`, than other
directories in the source tree that are expanded to the real path. In
that case, the test file in "csv" under the test directory of csv gem
instead of the library path will be the first candidate, in
`TestIRB::TestCompletion#test_complete_require_library_name_first`.
```
<"'csv"> expected but was
<"'csv/helper">.
```
Diffstat (limited to 'tool')
-rw-r--r-- | tool/test/runner.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tool/test/runner.rb b/tool/test/runner.rb index c629943090..335fe65fd4 100644 --- a/tool/test/runner.rb +++ b/tool/test/runner.rb @@ -18,6 +18,6 @@ when __FILE__ when "-e" # No default directory else - dir = File.expand_path("..", $0) + dir = File.realdirpath("..", $0) end exit Test::Unit::AutoRunner.run(true, dir) |