ruby/test/json
Yusuke Endoh c565dfb09a test/json/test_helper.rb: Do not add a relative path to $LOAD_PATH
... because it conflicts with test/ruby/test_m17n.rb.

An exception `incompatible character encodings: UTF-8 and UTF-16BE`
occurs when:

* a non-existence relative path is added to $LOAD_PATH,
* ASCII-incompatible encoding is set to default_external, and
* some file is loaded.

```
$LOAD_PATH << "no_existing_dir"
Encoding.default_external = Encoding::UTF_16BE
load "dummy.rb" #=> incompatible character encodings: UTF-8 and UTF-16BE
```

This issue can be actually observed by a combination of out-of-place
build and the following command:

make test-all TESTS="json ruby/m17n -n test_object_inspect_external"

http://ci.rvm.jp/logfiles/brlog.trunk-test-random.20200322-221411

ASCII-incompatible default external encoding assumes that the cwd is the
encoding, and it is attempted to beconcatenated with a non-existence
relative LOAD_PATH UTF-8 string, which causes the exception.

This changeset avoids a relative path.
2020-03-24 10:45:52 +09:00
..
fixtures * ext/json/*, test/json/*: Update json-2.0.1. 2016-07-05 11:49:39 +00:00
json_addition_test.rb Merge json-2.2.0 from flori/json. 2019-02-23 03:43:58 +00:00
json_common_interface_test.rb [flori/json] fix test as reported in #343 2019-10-14 19:54:49 +09:00
json_encoding_test.rb Use `assert_raise` instead of `assert_raises`. 2017-04-12 00:21:20 +00:00
json_ext_parser_test.rb * test/lib/test/unit.rb: added test files with `_test` suffix for json 2016-07-13 13:27:07 +00:00
json_fixtures_test.rb * test/lib/test/unit.rb: added test files with `_test` suffix for json 2016-07-13 13:27:07 +00:00
json_generator_test.rb Import json-2.3.0 from flori/json 2019-12-12 09:14:09 +09:00
json_generic_object_test.rb * test/lib/test/unit.rb: added test files with `_test` suffix for json 2016-07-13 13:27:07 +00:00
json_parser_test.rb Ignore warnings about ambiguous first argument with the negative integer. 2019-06-01 15:07:35 +03:00
json_string_matching_test.rb * test/lib/test/unit.rb: added test files with `_test` suffix for json 2016-07-13 13:27:07 +00:00
test_helper.rb test/json/test_helper.rb: Do not add a relative path to $LOAD_PATH 2020-03-24 10:45:52 +09:00