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

Modification of a read-only value #789

Closed
jira-zz opened this issue Sep 26, 2017 · 2 comments
Closed

Modification of a read-only value #789

jira-zz opened this issue Sep 26, 2017 · 2 comments

Comments

@jira-zz
Copy link

jira-zz commented Sep 26, 2017

There seems to be some weird interaction with Test::Script.
I'm using Test::Class and whenever I use script_compiles from Test::Script I get:
Modification of a read-only value attempted at /opt/perl/lib/site_perl/5.26.1/Test/Builder.pm line 1442.

Example code:

package Test;

use strict;
use warnings;

use base 'Test::Class';

use Test::More;
use Test::Script;

sub a_compilation_test : Test(startup => 1) {
  script_compiles('./t.pl');
}

sub test : Test(1) {
        ok(1);
}

package main;

use Test::Class;

Test::Class->runtests;

The content of the script passed to script_compiles makes no difference. It can be even empty.

@exodist
Copy link
Member

exodist commented Sep 26, 2017

What version of Test-Simple do you have installed?

@jira-zz
Copy link
Author

jira-zz commented Sep 27, 2017

Should be the latest - 1.302096

@exodist exodist closed this as completed in 69122f0 Oct 3, 2017
exodist added a commit that referenced this issue Oct 3, 2017
    - Fix hub->process bug that could let an error pass
    - Fix #789 (Modification of read only value)
    - Fix typo in Test::Builder when looking for IPC (#777)
    - Fix #791, clone_io broke on scalar io layer
    - Fix #790 and #756, Exception event stingify exception
    - Localize $^E in context (#780)
    - Fix test that failed in verbose mode (#770)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants