summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2013-03-01 00:44:55 +0100
committerBen Noordhuis <info@bnoordhuis.nl>2013-03-01 00:48:19 +0100
commitc53b921648dd72bb59c547d340ded5fb0be1b775 (patch)
tree168c806f5db03fa333f69894d29874692be263fd
parentd019bec72d12adae00e6a95600a858caf6bd33ce (diff)
downloadnode-c53b921648dd72bb59c547d340ded5fb0be1b775.tar.gz
test: disable simple/test-process-getgroups on os x
The output of `id -G` is unreliable on OS X. It uses an undocumented Libsystem function called getgrouplist_2() that includes some auxiliary groups that the POSIX getgroups() function does not return. Or rather, not always. It leads to fun bug chases where the test fails in one terminal but not in another.
-rw-r--r--test/simple/test-process-getgroups.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/simple/test-process-getgroups.js b/test/simple/test-process-getgroups.js
index c24a17ace..16d017b3c 100644
--- a/test/simple/test-process-getgroups.js
+++ b/test/simple/test-process-getgroups.js
@@ -23,6 +23,11 @@ var common = require('../common');
var assert = require('assert');
var exec = require('child_process').exec;
+if (process.platform === 'darwin') {
+ console.log('Skipping. Output of `id -G` is unreliable on Darwin.');
+ return;
+}
+
if (typeof process.getgroups === 'function') {
var groups = process.getgroups();
assert(Array.isArray(groups));