-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[Test] Disable StaticBigInt test on watchOS #62594
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
Conversation
This seems to be an issue because the test verifies some things on Int and UInt, but doesn't account for the fact that those types are 32 bits on some platforms. CC: @benrimmington |
@tbkka Thanks for the ping, I was unaware that this test file had been disabled. (Although the I'm unable to test on a watchOS device or 32-bit simulator. Please could you share the output of the test failures? |
Here you go:
|
@tbkka Thanks. Those statements are within |
Were those conditionals added at some point? Maybe this test just got unlucky and ran before that? |
No, the tests haven't changed since they were first merged two weeks ago. The only recent change was to add a feature flag in #62541, but that didn't touch the tests. |
That's ... confusing. I'll try to dig out some more details and see if I can narrow down the problem here. One question: Why |
To avoid "warning: will never be executed"; otherwise the compiler can see the |
Oh. I see. Those tests aren't executing on watchOS. This is a compile-time failure. |
OK, so the tests should be using: - if getInt(UInt.bitWidth) == 32 {
+ #if arch(i386) || arch(arm) || arch(arm64_32) || arch(wasm32) || arch(powerpc)
- } else if getInt(UInt.bitWidth) == 64 {
+ #elseif arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x)
- if getInt(UInt.bitWidth) == 64 {
+ #if arch(x86_64) || arch(arm64) || arch(powerpc64) || arch(powerpc64le) || arch(s390x) |
The |
If you can get the PR up soon enough, we can certainly try. |
No description provided.