Implement a mechanism to realloc array buffers; Trap when trying to allocate more than max size; Test allocators in CI

This commit is contained in:
dcodeIO
2018-04-08 00:43:38 +02:00
parent dcc0e284fb
commit 9731958738
41 changed files with 2911 additions and 2024 deletions

View File

@ -24,7 +24,7 @@ if (args.help) {
}
var successes = 0;
var failures = 0;
var failedTests = [];
const basedir = path.join(__dirname, "compiler");
@ -136,15 +136,15 @@ tests.forEach(filename => {
failed = true;
}
if (failed) ++failures;
if (failed) failedTests.push(basename);
else ++successes;
console.log();
});
});
});
if (failures) {
if (failedTests.length) {
process.exitCode = 1;
console.log(chalk.red("ERROR: ") + failures + " compiler tests failed");
console.log(chalk.red("ERROR: ") + failedTests.length + " compiler tests failed: " + failedTests.join(", "));
} else
console.log("[ " + chalk.whiteBright("SUCCESS") + " ]");