From 3d62d38ba4b107583adfb225063e0a945a48228d Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Wed, 10 Oct 2018 13:06:11 -0700 Subject: test: rename common.ddCommand() Change common.ddCommand() to common.createZeroFilledFile(). PR-URL: https://github.com/nodejs/node/pull/23411 Reviewed-By: Refael Ackermann Reviewed-By: Richard Lau Reviewed-By: Luigi Pinca Reviewed-By: Benjamin Gruenbaum Reviewed-By: Sakthipriyan Vairamani Reviewed-By: James M Snell Reviewed-By: George Adams --- test/common/README.md | 2 +- test/common/index.js | 4 ++-- test/common/index.mjs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'test/common') 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, -- cgit v1.2.3