Skip to content

Commit 9e74e54

Browse files
jBarzMylesBorins
authored andcommitted
test: skip test due to file size limit
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. PR-URL: #16273 Fixes: #16319 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: MichaëZasso <targos@protonmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Myles Borins <myles.borins@gmail.com> Reviewed-By: Yuta Hiroto <hello@about-hiroppy.com> Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
1 parent fc2ab06 commit 9e74e54

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/sequential/test-fs-readfile-tostring-fail.js

+3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ if (!common.enoughTestMem)
88
const assert = require('assert');
99
const fs = require('fs');
1010
const path = require('path');
11+
const cp = require('child_process');
1112
const kStringMaxLength = process.binding('buffer').kStringMaxLength;
13+
if (common.isAIX && (Number(cp.execSync('ulimit -f')) * 512) < kStringMaxLength)
14+
common.skip('intensive toString tests due to file size confinements');
1215

1316
common.refreshTmpDir();
1417

0 commit comments

Comments
 (0)