Skip to content

Commit

Permalink
improve --reduce-test (#3727)
Browse files Browse the repository at this point in the history
- print out Node.js and OS information
  • Loading branch information
alexlamsl committed Feb 17, 2020
1 parent 53517db commit 457f958
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/reduce.js
@@ -1,6 +1,7 @@
var crypto = require("crypto");
var U = require("./node");
var List = U.List;
var os = require("os");
var sandbox = require("./sandbox");

// Reduce a ufuzz-style `console.log` based test case by iteratively replacing
Expand Down Expand Up @@ -29,6 +30,9 @@ module.exports = function reduce_test(testcase, minify_options, reduce_options)
// the initial timeout to assess the viability of the test case must be large
var differs = producesDifferentResultWhenMinified(result_cache, testcase, minify_options, max_timeout);

if (verbose) {
console.error("// Node.js " + process.version + " on " + os.platform() + " " + os.arch());
}
if (!differs) {
// same stdout result produced when minified
return {
Expand Down

0 comments on commit 457f958

Please sign in to comment.