test: skip test if FreeBSD jail will break it

`test/internet/test-dgram-broadcast-multi-process.js` fails if it is in
a FreeBSD jail. This issue is with the way FreeBSD jails work and not
with Node. Skip the test if in a FreeBSD jail.

PR-URL: https://github.com/nodejs/node/pull/3839
Fixes: https://github.com/nodejs/node/issues/2472
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Johan Bergström <bugs@bergstroem.nu>
Reviewed-By: Ben Noordhuis <ben@strongloop.com>
This commit is contained in:
Rich Trott authored and James M Snell committed 2015-12-17 10:19:37 -08:00
1 parent 150f126618
commit 9ea6bc1e0f
1 file changed
+5
@@ -15,6 +15,11 @@ var common = require('../common'),
new Buffer('Fourth message to send')
];
if (common.inFreeBSDJail) {
console.log('1..0 # Skipped: in a FreeBSD jail');
return;
}
// take the first non-internal interface as the address for binding
get_bindAddress: for (var name in networkInterfaces) {
var interfaces = networkInterfaces[name];