Skip to content

Commit

Permalink
aix,test: skip test due to file size limit
Browse files Browse the repository at this point in the history
The test requires a file size limit that is greater than the string
size limit. Some aix machines might not meet this criteria so in
which case we should skip the test.
  • Loading branch information
jBarz committed Oct 18, 2017
1 parent d545c94 commit b9b278b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/sequential/test-fs-readfile-tostring-fail.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,10 @@ if (!common.enoughTestMem)
const assert = require('assert');
const fs = require('fs');
const path = require('path');
const cp = require('child_process');
const kStringMaxLength = process.binding('buffer').kStringMaxLength;
if (common.isAIX && Number(cp.execSync('ulimit -f')) < kStringMaxLength)
common.skip('intensive toString tests due to file size confinements');

common.refreshTmpDir();

Expand Down

0 comments on commit b9b278b

Please sign in to comment.