Unify allocator tests even more, also test arena

This commit is contained in:
dcodeIO
2018-03-04 17:25:32 +01:00
parent 4257273d42
commit 00c4f6fa52
36 changed files with 3463 additions and 2977 deletions

View File

@ -2,13 +2,15 @@ var child_process = require("child_process");
// restarts the test forever, that is, until an issue is detected
if (process.argv.length < 2) {
console.error("Usage: npm run test:forever <allocator>");
process.exit(1);
}
var count = 0;
while (true) {
console.log("[ #" + ++count + " ]\n");
var script = process.argv.length > 2
? __dirname + "/" + process.argv[2]
: __dirname;
var res = child_process.spawnSync("node", [ script ], { stdio: "inherit" });
var res = child_process.spawnSync("node", [ "./index", process.argv[2] ], { stdio: "inherit" });
if (res.status !== 0)
throw Error("exited with " + res.status);
if (res.error)