diff options
author | Rich Trott <rtrott@gmail.com> | 2018-10-10 13:06:11 -0700 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2018-10-12 13:48:44 -0700 |
commit | 3d62d38ba4b107583adfb225063e0a945a48228d (patch) | |
tree | a2e9bee3e0dce933fe53341e1177db579a58f1f9 /test/common/index.js | |
parent | f897843359a1f1b8dc9839105b84dcc50a15e1f6 (diff) | |
download | android-node-v8-3d62d38ba4b107583adfb225063e0a945a48228d.tar.gz android-node-v8-3d62d38ba4b107583adfb225063e0a945a48228d.tar.bz2 android-node-v8-3d62d38ba4b107583adfb225063e0a945a48228d.zip |
test: rename common.ddCommand()
Change common.ddCommand() to common.createZeroFilledFile().
PR-URL: https://github.com/nodejs/node/pull/23411
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Richard Lau <riclau@uk.ibm.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
Reviewed-By: Benjamin Gruenbaum <benjamingr@gmail.com>
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: George Adams <george.adams@uk.ibm.com>
Diffstat (limited to 'test/common/index.js')
-rw-r--r-- | test/common/index.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/common/index.js b/test/common/index.js index 492bb2f357..e76dfcce8b 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -173,7 +173,7 @@ function childShouldThrowAndAbort() { }); } -function ddCommand(filename) { +function createZeroFilledFile(filename) { const fd = fs.openSync(filename, 'w'); fs.ftruncateSync(fd, 10 * 1024 * 1024); fs.closeSync(fd); @@ -697,7 +697,7 @@ module.exports = { busyLoop, canCreateSymLink, childShouldThrowAndAbort, - ddCommand, + createZeroFilledFile, disableCrashOnUnhandledRejection, enoughTestCpu, enoughTestMem, |