Skip to content

Extract name and type tests#4208

Merged
chriseth merged 5 commits intodevelopfrom
extract-name-and-type-tests
Jun 4, 2018
Merged

Extract name and type tests#4208
chriseth merged 5 commits intodevelopfrom
extract-name-and-type-tests

Conversation

@axic
Copy link
Copy Markdown
Contributor

@axic axic commented May 30, 2018

No description provided.

@axic
Copy link
Copy Markdown
Contributor Author

axic commented May 30, 2018

Hand compared the extracted expectations with the original ones. I do not want to do that again :)

However, there seems to be a non-determinism bug (it seems to be in ViewPureChecker). Some test cases report two warnings in different order sometimes.

This is one of the affected tests:

syntaxTests/nameAndTypeResolution/055_inheritance_diamond_basic.sol: FAIL
  Contract:
    contract root { function rootFunction() public {} }
    contract inter1 is root { function f() public {} }
    contract inter2 is root { function f() public {} }
    contract derived is root, inter2, inter1 {
        function g() public { f(); rootFunction(); }
    }

  Expected result:
    Warning: (16-49): Function state mutability can be restricted to pure
    Warning: (129-151): Function state mutability can be restricted to pure
  Obtained result:
    Warning: (129-151): Function state mutability can be restricted to pure
    Warning: (16-49): Function state mutability can be restricted to pure

chriseth
chriseth previously approved these changes Jun 4, 2018
@chriseth
Copy link
Copy Markdown
Contributor

chriseth commented Jun 4, 2018

I haven't fully reviewed this, but I'm still fine to merge it.

@chriseth
Copy link
Copy Markdown
Contributor

chriseth commented Jun 4, 2018

The tests fail due to expectations depending on the VM version. Is this fixable in the isoltest framework?

@chriseth
Copy link
Copy Markdown
Contributor

chriseth commented Jun 4, 2018

This is hopefully the final fix now.

@chriseth
Copy link
Copy Markdown
Contributor

chriseth commented Jun 4, 2018

Appveyor is green apart from the know problem and bytecode comparison push.

@axic
Copy link
Copy Markdown
Contributor Author

axic commented Jun 6, 2018

Move "create2_as_variable" back to non-isoltest tests.

Ah I was sure I kept all of those in the C++ file, but seems like missed this one.

@axic axic deleted the extract-name-and-type-tests branch June 6, 2018 14:49
@chriseth
Copy link
Copy Markdown
Contributor

chriseth commented Jun 6, 2018

The code did not show that it depended on the EVM version and the error message was shortened (those only perform a partial match).

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

Successfully merging this pull request may close these issues.

2 participants