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

GetLogicalProcessorInformation and associated structs #225

Merged
merged 3 commits into from
May 25, 2013
Merged

GetLogicalProcessorInformation and associated structs #225

merged 3 commits into from
May 25, 2013

Conversation

hakanai
Copy link
Contributor

@hakanai hakanai commented May 1, 2013

If you want to find out the true number of processor cores on Windows, it looks like this is the most straight-forward way...


public final void testGetLogicalProcessorInformation() {
WinNT.SYSTEM_LOGICAL_PROCESSOR_INFORMATION informationArray = Kernel32Util.getLogicalProcessorInformation();
assertTrue(informationArray >= 1); // docs say so
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this even compile? I was expecting to see informationArray.length >= 1.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Crap. I bet it doesn't. I can't tell because the test code already couldn't compile before I got here (it's looking for StructureFieldOrderTest and can't find it. I went looking for it too and I can't find it either.) :)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

StructureFieldOrderTest is linux-only; I've refactored the contrib tests to properly compile/run only on their respective platforms.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This class compiles now. Although even after merging, I still see StructureFieldOrderTest failing to build, now I'm sitting on Mac OS, not on Windows. Well, at least no compilation errors show Kernel32UtilTest anymore, so things are probably OK.

@twall
Copy link
Contributor

twall commented May 7, 2013

What version OSX and Java? I'm building on 10.6.8 w/ Xcode 3.2.6 and 10.8.x w/ Xcode 4.

StructureFieldTest is supposed to be limited to linux builds.

@hakanai
Copy link
Contributor Author

hakanai commented May 7, 2013

10.8.2 and Java 1.6.0_41 (not using Xcode, just the command-line)

@twall
Copy link
Contributor

twall commented May 7, 2013

I'm not actually using Xcode, but that's usually where gcc, git and friends come from.

@dblock dblock merged commit d2159d7 into java-native-access:master May 25, 2013
@dblock
Copy link
Member

dblock commented May 25, 2013

Merged in 8e44c82, with some minor updates (@trejkaz, please review). Thank you.

mstyura pushed a commit to mstyura/jna that referenced this pull request Sep 9, 2024
…on and upgrade (java-native-access#225)

Motivation:

Newer versions of dawidd6/action-download-artifact changed the default
workflow_conclusion from "completed" to "completed, success" which can
result in download failures if the associated job fails, which is
expected when tests fail.

Modifications:

- Explicitly set the workflow_conclusion to "completed"
- Update to new version

Result:

Test failures which result in build failures will still download test
data and generate reports after updating dawidd6/action-download-artifact.
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.

3 participants