diff options
author | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-06-17 12:08:34 +0900 |
---|---|---|
committer | Kazuhiro NISHIYAMA <zn@mbf.nifty.com> | 2020-06-17 12:08:34 +0900 |
commit | 7325bed2b45bc7678b95e1f79e151a7a779f7484 (patch) | |
tree | 9f36c0b0d36d02b438321628c550f4cab2b0412d /test/webrick/test_filehandler.rb | |
parent | af6e63a9df5cd21d57a7a431cf5b45234d1f1b20 (diff) | |
download | ruby-7325bed2b45bc7678b95e1f79e151a7a779f7484.tar.gz |
Show filesystem encoding in failure message
`test_cjk_in_path` failed on mswinci yet.
https://rubyci.org/logs/mswinci.japaneast.cloudapp.azure.com/vc12-x64/ruby-master/log/20200616T192319Z.fail.html.gz
```
1) Failure:
WEBrick::TestFileHandler#test_cjk_in_path [D:/tmp/mswin-build20200617-120024-1brdn58/ruby/test/webrick/utils.rb:72]:
exceptions on 2 threads:
webrick log start:
[2020-06-17 06:12:53] ERROR `/あ.txt' not found.
webrick log end.
<"200"> expected but was
<"404">.
---
<[]> expected but was
<["[2020-06-17 06:12:53] ERROR `/\xE3\x81\x82.txt' not found.\n"]>.
```
Diffstat (limited to 'test/webrick/test_filehandler.rb')
-rw-r--r-- | test/webrick/test_filehandler.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/webrick/test_filehandler.rb b/test/webrick/test_filehandler.rb index 821d91b3cd..807e96bd18 100644 --- a/test/webrick/test_filehandler.rb +++ b/test/webrick/test_filehandler.rb @@ -295,7 +295,7 @@ class WEBrick::TestFileHandler < Test::Unit::TestCase TestWEBrick.start_httpserver(config) do |server, addr, port, log| http = Net::HTTP.new(addr, port) req = Net::HTTP::Get.new("/%E3%81%82.txt") - http.request(req){|res| assert_equal("200", res.code, log.call) } + http.request(req){|res| assert_equal("200", res.code, log.call + "\nFilesystem encoding is #{Encoding.find('filesystem')}") } end end end |