diff options
| author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2025-01-09 15:47:59 +0900 |
|---|---|---|
| committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2026-03-26 08:41:55 +0900 |
| commit | 6809c69f62f382fb969a2da9cee228496ea9fb8e (patch) | |
| tree | d552ef08c148445578aea8412c1df272fcff6bec | |
| parent | 79fe6fcb5c85f65e146b3d0d52d7a41f1a578e39 (diff) | |
[ruby/pstore] Added lib path to in assert_in_out_err
https://github.com/ruby/pstore/commit/b563c4d354
| -rw-r--r-- | test/test_pstore.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/test_pstore.rb b/test/test_pstore.rb index 7dfbdca367..696660bd0f 100644 --- a/test/test_pstore.rb +++ b/test/test_pstore.rb @@ -133,7 +133,8 @@ class PStoreTest < Test::Unit::TestCase def test_pstore_files_are_accessed_as_binary_files bug5311 = '[ruby-core:39503]' n = 128 - assert_in_out_err(["-Eutf-8:utf-8", "-rpstore", "-", @pstore_file], <<-SRC, [bug5311], [], bug5311, timeout: 30) + top_dir = File.expand_path('../lib', __dir__) + assert_in_out_err(["-Eutf-8:utf-8", "-I#{top_dir}", "-rpstore", "-", @pstore_file], <<-SRC, [bug5311], [], bug5311, timeout: 30) @pstore = PStore.new(ARGV[0]) (1..#{n}).each do |i| @pstore.transaction {@pstore["Key\#{i}"] = "value \#{i}"} |
