Skip to content
This repository was archived by the owner on Jan 13, 2024. It is now read-only.

Commit 7c72f3a

Browse files
committed
test: fs-runtime-layer: remove "birthtime" check
This does not make sense since we use the stat() of the executable for all stat() inside snapshot.
1 parent e7e67aa commit 7c72f3a

File tree

3 files changed

+0
-92
lines changed

3 files changed

+0
-92
lines changed

test/test-50-fs-runtime-layer/test-x1-index.js

-65
Original file line numberDiff line numberDiff line change
@@ -240,71 +240,6 @@ console.log(
240240

241241
//
242242

243-
fs.statSync(path.join(__dirname, theRequireContentA)).birthtime.getYear(),
244-
fs.statSync(__dirname + path.sep + theRequireContentB).birthtime.getYear(),
245-
fs.statSync(__dirname + '/' + theRequireContentB).birthtime.getYear(),
246-
windows
247-
? fs.statSync(__dirname + '/\\' + theRequireContentB).birthtime.getYear()
248-
: '',
249-
windows
250-
? fs.statSync(__dirname + '\\' + theRequireContentB).birthtime.getYear()
251-
: '',
252-
windows
253-
? fs.statSync(__dirname + '\\/' + theRequireContentB).birthtime.getYear()
254-
: '',
255-
256-
fs
257-
.statSync(firstLowerCase(path.join(__dirname, theRequireContentA)))
258-
.birthtime.getYear(),
259-
fs
260-
.statSync(firstLowerCase(__dirname + path.sep + theRequireContentB))
261-
.birthtime.getYear(),
262-
fs
263-
.statSync(firstLowerCase(__dirname + '/' + theRequireContentB))
264-
.birthtime.getYear(),
265-
windows
266-
? fs
267-
.statSync(firstLowerCase(__dirname + '/\\' + theRequireContentB))
268-
.birthtime.getYear()
269-
: '',
270-
windows
271-
? fs
272-
.statSync(firstLowerCase(__dirname + '\\' + theRequireContentB))
273-
.birthtime.getYear()
274-
: '',
275-
windows
276-
? fs
277-
.statSync(firstLowerCase(__dirname + '\\/' + theRequireContentB))
278-
.birthtime.getYear()
279-
: '',
280-
281-
fs
282-
.statSync(firstUpperCase(path.join(__dirname, theRequireContentA)))
283-
.birthtime.getYear(),
284-
fs
285-
.statSync(firstUpperCase(__dirname + path.sep + theRequireContentB))
286-
.birthtime.getYear(),
287-
fs
288-
.statSync(firstUpperCase(__dirname + '/' + theRequireContentB))
289-
.birthtime.getYear(),
290-
windows
291-
? fs
292-
.statSync(firstUpperCase(__dirname + '/\\' + theRequireContentB))
293-
.birthtime.getYear()
294-
: '',
295-
windows
296-
? fs
297-
.statSync(firstUpperCase(__dirname + '\\' + theRequireContentB))
298-
.birthtime.getYear()
299-
: '',
300-
windows
301-
? fs
302-
.statSync(firstUpperCase(__dirname + '\\/' + theRequireContentB))
303-
.birthtime.getYear()
304-
: '',
305-
306-
//
307-
308243
fs.statSync(path.join(__dirname, theRequireContentA)).isFile(),
309244
fs.statSync(__dirname + path.sep + theRequireContentB).isFile(),
310245
fs.statSync(__dirname + '/' + theRequireContentB).isFile(),

0 commit comments

Comments
 (0)