| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8c434e6 commit 83dab80
2 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -0,0 +1,20 @@ | |||
| 1 | + prefix known_issues | ||
| 2 | + | ||
| 3 | + # If a known issue does not apply to a platform, list the test name in the | ||
| 4 | + # appropriate section below, without ".js", followed by ": SKIP". Example: | ||
| 5 | + # sample-test : SKIP | ||
| 6 | + | ||
| 7 | + [true] # This section applies to all platforms | ||
| 8 | + | ||
| 9 | + [$system==win32] | ||
| 10 | + test-stdout-buffer-flush-on-exit: SKIP | ||
| 11 | + | ||
| 12 | + [$system==linux] | ||
| 13 | + | ||
| 14 | + [$system==macos] | ||
| 15 | + | ||
| 16 | + [$system==solaris] | ||
| 17 | + | ||
| 18 | + [$system==freebsd] | ||
| 19 | + | ||
| 20 | + [$system==aix] | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -5,16 +5,23 @@ require('../common'); | |||
| 5 | 5 | const assert = require('assert'); | |
| 6 | 6 | const execSync = require('child_process').execSync; | |
| 7 | 7 | ||
| 8 | - const longLine = 'foo bar baz quux quuz aaa bbb ccc'.repeat(65536); | ||
| 8 | + const lineSeed = 'foo bar baz quux quuz aaa bbb ccc'; | ||
| 9 | 9 | ||
| 10 | 10 | if (process.argv[2] === 'child') { | |
| 11 | + const longLine = lineSeed.repeat(parseInt(process.argv[4], 10)); | ||
| 11 | 12 | process.on('exit', () => { | |
| 12 | 13 | console.log(longLine); | |
| 13 | 14 | }); | |
| 14 | 15 | process.exit(); | |
| 15 | 16 | } | |
| 16 | 17 | ||
| 17 | - const cmd = `${process.execPath} ${__filename} child`; | ||
| 18 | - const stdout = execSync(cmd).toString().trim(); | ||
| 18 | + [16, 18, 20].forEach((exponent) => { | ||
| 19 | + const bigNum = Math.pow(2, exponent); | ||
| 20 | + const longLine = lineSeed.repeat(bigNum); | ||
| 21 | + const cmd = `${process.execPath} ${__filename} child ${exponent} ${bigNum}`; | ||
| 22 | + const stdout = execSync(cmd).toString().trim(); | ||
| 23 | + | ||
| 24 | + assert.strictEqual(stdout, longLine, `failed with exponent ${exponent}`); | ||
| 25 | + }); | ||
| 26 | + | ||
| 19 | 27 | ||
| 20 | - assert.strictEqual(stdout, longLine); | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments