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

Add env to skip mlock test #97

Open
mafintosh opened this issue Apr 29, 2019 · 0 comments
Open

Add env to skip mlock test #97

mafintosh opened this issue Apr 29, 2019 · 0 comments

Comments

@mafintosh
Copy link
Member

When running on my virtual host this test always fails (there might be more), due to a missing capability.

/root/sodium-native/test/memory.js:24
  sodium.sodium_mlock(buf)
         ^

Error: EPERM, Operation not permitted
    at Test.<anonymous> (/root/sodium-native/test/memory.js:24:10)
    at Test.bound [as _cb] (/root/sodium-native/node_modules/tape/lib/test.js:77:32)
    at Test.run (/root/sodium-native/node_modules/tape/lib/test.js:96:10)
    at Test.bound [as run] (/root/sodium-native/node_modules/tape/lib/test.js:77:32)
    at Immediate.next (/root/sodium-native/node_modules/tape/lib/results.js:75:19)
    at runCallback (timers.js:705:18)
    at tryOnImmediate (timers.js:676:5)
    at processImmediate (timers.js:658:5)

Would be nice if we had a flag to disable those to still run the full test suite on systems like that.

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

No branches or pull requests

1 participant