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 | |
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')
-rw-r--r-- | test/common/README.md | 2 | ||||
-rw-r--r-- | test/common/index.js | 4 | ||||
-rw-r--r-- | test/common/index.mjs | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/test/common/README.md b/test/common/README.md index 4d914f4f89..e63c83fd80 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -52,7 +52,7 @@ symlinks ([SeCreateSymbolicLinkPrivilege](https://msdn.microsoft.com/en-us/library/windows/desktop/bb530716(v=vs.85).aspx)). On non-Windows platforms, this always returns `true`. -### ddCommand(filename) +### createZeroFilledFile(filename) Creates a 10 MB file of all null characters. 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, diff --git a/test/common/index.mjs b/test/common/index.mjs index 832f68a9ee..bb17d9d371 100644 --- a/test/common/index.mjs +++ b/test/common/index.mjs @@ -22,7 +22,7 @@ const { PIPE, hasIPv6, childShouldThrowAndAbort, - ddCommand, + createZeroFilledFile, platformTimeout, allowGlobals, mustCall, @@ -71,7 +71,7 @@ export { PIPE, hasIPv6, childShouldThrowAndAbort, - ddCommand, + createZeroFilledFile, platformTimeout, allowGlobals, mustCall, |