-
Notifications
You must be signed in to change notification settings - Fork 5
Fix 3C definedType test failure on Windows X86 and re-enable the test #345
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
Comments
Thanks. We'll find the right person to look into this on Monday. |
I'm keeping this issue open for us to fix the definedType test on Windows X86 after Microsoft fixes the problem that currently makes the tests difficult to run on Windows X86 (checkedc#963). |
Now that we're able to run the Windows X86 tests, I tracked down why the test was failing on X86 and not X64. checkedc-clang/clang/test/3C/definedType.c Lines 21 to 36 in 54d1bfd
The X86:
X64:
So The checkedc-clang/clang/lib/3C/ConstraintResolver.cpp Lines 121 to 128 in 54d1bfd
I guess getSizeOfArg should just do Arg = Arg->IgnoreParenImpCasts() like analyzeAllocExpr does here:
Next questions: Is there a reasonable way to test this that is independent of the OS and architecture? Are there any other obvious places in 3C that we should test for similar bugs while we're here? |
The only straightforward testing approach I can see needs an integer type larger than |
I'm satisfied as long as we can test this behavior on current 64-bit linux and don't cause test failures on other configurations. |
This was the cause of the `definedType.c` failure on Windows X86, so we can now re-enable that test. We also have a dedicated test for the bug that should work in our main Linux environment. Fixes #345.
This was the cause of the `definedType.c` failure on Windows X86, so we can now re-enable that test. We also have a dedicated test for the bug that should work in our main Linux environment. Fixes #345.
@mattmccutchen-cci
After checkedc#930 merged a number of 3C unit tests failed on Windows builds. These were temporarily disabled: checkedc#952 to unblock the builds. Need fix the underlying issues and enable these tests.
The text was updated successfully, but these errors were encountered: