Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make the test suite is compatible with --enable-frozen-string-literal #10235

Merged
merged 1 commit into from
Mar 14, 2024

Conversation

casperisfine
Copy link
Contributor

@casperisfine casperisfine commented Mar 13, 2024

As preparation for https://bugs.ruby-lang.org/issues/20205 making sure the test suite is compatible with frozen string literals is making things easier.

Note that spec/ is being handled upstream: ruby/spec#1142

@casperisfine casperisfine force-pushed the enable-frozen-string-literal-compile branch 2 times, most recently from f195b9c to 04f45a7 Compare March 13, 2024 12:02

This comment has been minimized.

@casperisfine casperisfine force-pushed the enable-frozen-string-literal-compile branch 4 times, most recently from b583fa5 to d5ae988 Compare March 13, 2024 14:22
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
spec/mspec/spec/runner/mspec_spec.rb Fixed Show fixed Hide fixed
@casperisfine casperisfine force-pushed the enable-frozen-string-literal-compile branch from 0edf492 to 0ab9078 Compare March 13, 2024 17:19
casperisfine pushed a commit to casperisfine/mspec that referenced this pull request Mar 13, 2024
Ref: ruby/ruby#10235

As discussed upstream, the mutability is only used in one spec, `path.rb`:

```ruby
    @name = +"file_to_path"
    @path = tmp(@name)
```

For all the others it doesn't matter if the argument is mutated or not.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/mspec that referenced this pull request Mar 13, 2024
Ref: ruby/ruby#10235

As discussed upstream, the mutability is only used in one spec, `path.rb`:

```ruby
    @name = +"file_to_path"
    @path = tmp(@name)
```

For all the others it doesn't matter if the argument is mutated or not.
eregon pushed a commit to ruby/mspec that referenced this pull request Mar 13, 2024
Ref: ruby/ruby#10235

As discussed upstream, the mutability is only used in one spec, `path.rb`:

```ruby
    @name = +"file_to_path"
    @path = tmp(@name)
```

For all the others it doesn't matter if the argument is mutated or not.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
casperisfine pushed a commit to casperisfine/spec that referenced this pull request Mar 13, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.
@casperisfine casperisfine force-pushed the enable-frozen-string-literal-compile branch from 0ab9078 to c38e212 Compare March 14, 2024 16:01
@casperisfine casperisfine changed the title Ensure test suite is compatible with --frozen-string-literal Make the test suite is compatible with --enable-frozen-string-literal Mar 14, 2024
@casperisfine casperisfine force-pushed the enable-frozen-string-literal-compile branch from c38e212 to 43f2a04 Compare March 14, 2024 16:03
@casperisfine casperisfine marked this pull request as ready for review March 14, 2024 16:12
@casperisfine casperisfine requested a review from a team as a code owner March 14, 2024 16:12
As preparation for https://bugs.ruby-lang.org/issues/20205
making sure the test suite is compatible with frozen string
literals is making things easier.
@casperisfine casperisfine force-pushed the enable-frozen-string-literal-compile branch from 43f2a04 to 940a9ae Compare March 14, 2024 16:25
@byroot byroot enabled auto-merge (rebase) March 14, 2024 16:26
eregon added a commit to casperisfine/spec that referenced this pull request Mar 14, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.

Co-authored-by: Benoit Daloze <eregontp@gmail.com>
eregon added a commit to casperisfine/spec that referenced this pull request Mar 14, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.

Co-authored-by: Benoit Daloze <eregontp@gmail.com>
eregon added a commit to ruby/spec that referenced this pull request Mar 14, 2024
Extracted from: ruby/ruby#10235

Ref: https://bugs.ruby-lang.org/issues/20205

Ruby will gradually move towards enabling frozen string literals
by default. Making the ruby spec suite compatible is a good first
step.

Co-authored-by: Benoit Daloze <eregontp@gmail.com>
@byroot byroot merged commit 09d8c99 into ruby:master Mar 14, 2024
98 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
4 participants