Skip to content

Commit

Permalink
test: skip test if FreeBSD jail will break it
Browse files Browse the repository at this point in the history
`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: #3839
Fixes: #2472
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Johan Bergström <[email protected]>
Reviewed-By: Ben Noordhuis <[email protected]>
  • Loading branch information
Trott authored and Fishrock123 committed Nov 17, 2015
1 parent 2d0ca02 commit 4bb27ba
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/internet/test-dgram-broadcast-multi-process.js
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 4bb27ba

Please sign in to comment.