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

Fugly hack to make the tests pass for non-64-bit platforms #8

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

e8johan
Copy link

@e8johan e8johan commented Jun 2, 2015

This fugly "fix" makes sure that the typedef test case ignores the 64bit types if the system does not support them. This is done using sizeof().

Right now the test replicates the expected output for 64bit systems. This is not good, but the only way to make the current setup work, as there can only be one expected outcome for each test.

The best solution would have been if the type sizes where strictly defined inside the interpreter, i.e. that the test case passes regardless of the type sizes of the host system (which I guess is the issue here).

@e8johan e8johan mentioned this pull request Jun 2, 2015
jpoirier added a commit to jpoirier/picoc that referenced this pull request Jun 13, 2015
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.

1 participant