| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent acb976a commit f7651d2
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,8 +1,8 @@ | |||
| 1 | 1 | 'use strict'; | |
| 2 | - var fs = require('fs'); | ||
| 3 | - var assert = require('assert'); | ||
| 4 | - var cp = require('child_process'); | ||
| 5 | - var common = require('../common'); | ||
| 2 | + const fs = require('fs'); | ||
| 3 | + const assert = require('assert'); | ||
| 4 | + const cp = require('child_process'); | ||
| 5 | + const common = require('../common'); | ||
| 6 | 6 | ||
| 7 | 7 | // TODO(mhdawson) Currently the test-tick-processor functionality in V8 | |
| 8 | 8 | // depends on addresses being smaller than a full 64 bits. Aix supports | |
@@ -49,12 +49,12 @@ function runTest(pattern, code) { | |||
| 49 | 49 | return /^isolate-/.test(file); | |
| 50 | 50 | }); | |
| 51 | 51 | if (matches.length != 1) { | |
| 52 | - assert.fail(null, null, 'There should be a single log file.'); | ||
| 52 | + common.fail('There should be a single log file.'); | ||
| 53 | 53 | } | |
| 54 | 54 | var log = matches[0]; | |
| 55 | 55 | var out = cp.execSync(process.execPath + | |
| 56 | 56 | ' --prof-process --call-graph-size=10 ' + log, | |
| 57 | 57 | {encoding: 'utf8'}); | |
| 58 | - assert(pattern.test(out)); | ||
| 58 | + assert(pattern.test(out), `${pattern} not matching ${out}`); | ||
| 59 | 59 | fs.unlinkSync(log); | |
| 60 | 60 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments