mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-12 06:21:29 +00:00
Unify allocator tests even more, also test arena
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user