| 583 | const numtests = tests.length; |
| 584 | let testsRun = 0; |
| 585 | function runNextTest(err) { |
| 586 | assert.ifError(err); |
| 587 | const test = tests.shift(); |
| 588 | if (!test) { |
| 589 | return console.log(`${numtests} subtests completed OK for fs.realpath`); |
| 590 | } |
| 591 | testsRun++; |
| 592 | test(fs.realpath, fs.realpathSync, common.mustSucceed(() => { |
| 593 | testsRun++; |
| 594 | test(fs.realpath.native, |
| 595 | fs.realpathSync.native, |
| 596 | common.mustCall(runNextTest)); |
| 597 | })); |
| 598 | } |
| 599 | |
| 600 | function runTest() { |
| 601 | const tmpDirs = ['cycles', 'cycles/folder']; |