Project

General

Profile

Actions

Bug #14194

closed

--enable-frozen-string-literal ruby runner.rb cgi

Added by MSP-Greg (Greg L) over 6 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 2.5.0dev (2017-12-17 trunk 61304) [x64-mingw32]
[ruby-core:84313]

Description

Assuming --enable-frozen-string-literal, ruby runner.rb cgi

Running without patch:

  1) Failure:
CGIMultipartTest#test_cgi_multipart_without_tempfile [E:/GitHub/ruby/test/cgi/test_cgi_multipart.rb:353]:

1. [2/2] Assertion for "stderr"
   | <[]> expected but was
   | <["-:20:in `gsub!': can't modify frozen String, created at -:5 (FrozenError)",
   |  "\tfrom -:20:in `<main>'"]>.


Finished tests in 3.042000s, 143.3268 tests/s, 333.3333 assertions/s.
436 tests, 1014 assertions, 1 failures, 0 errors, 0 skips

With patch:

Finished tests in 2.620800s, 166.3614 tests/s, 386.9048 assertions/s.
436 tests, 1014 assertions, 0 failures, 0 errors, 0 skips

ruby -v: ruby 2.5.0dev (2017-12-17 trunk 61304) [x64-mingw32]

Files

frozen_cgi.patch (740 Bytes) frozen_cgi.patch MSP-Greg (Greg L), 12/17/2017 05:34 PM
test_all_err.log (2.04 KB) test_all_err.log MSP-Greg (Greg L), 06/22/2019 03:28 PM
test_mspec_err.log (832 Bytes) test_mspec_err.log MSP-Greg (Greg L), 06/22/2019 03:28 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0Like0