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

Fix testMemoryInfo failure on OS X #17

Merged
merged 1 commit into from
Mar 14, 2016
Merged

Fix testMemoryInfo failure on OS X #17

merged 1 commit into from
Mar 14, 2016

Conversation

rservant
Copy link

'make test' fails on OSX on my macbook pro.

[ FAILED ] 1 test, listed below:
[ FAILED ] PortSysinfoTest.sysinfo_testMemoryInfo

This test has passed on OS X machines with no swap space configured.

The failure is caused by the available swap space being detected as higher than the total swap space.

The attached commit simplifies the call to obtain the available swap space on OS X resulting in a value that is smaller than the total space available, allowing the test to pass.

The available swap space can be obtained directly from the sysctl vm.swapusage call that is already being made.  There is no need to probe the file system.

Signed-off-by: Ronald Servant <ronald_servant@ca.ibm.com>
@alin00
Copy link
Contributor

alin00 commented Mar 14, 2016

Running this commit through our test cluster.

alin00 added a commit that referenced this pull request Mar 14, 2016
Fix testMemoryInfo failure on OS X
@alin00 alin00 merged commit 1b537dc into eclipse-omr:master Mar 14, 2016
janvrany pushed a commit to shingarov/omr that referenced this pull request Mar 27, 2019
Fix file handle leak in isRunningInContainer() function
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