summaryrefslogtreecommitdiff
path: root/test/simple/test-fs-read-file-sync-hostname.js
blob: a2c8ac5da7ce612ef57e73f9da223668ba559d05 (plain)
1
2
3
4
5
6
7
8
9
var common = require('../common');
var assert = require('assert');
var fs = require('fs');

// test reading from hostname
if (process.platform === 'linux2') {
  var hostname = fs.readFileSync('/proc/sys/kernel/hostname');
  assert.ok(hostname.length > 0);
}