test262-harness icon indicating copy to clipboard operation
test262-harness copied to clipboard

Should have some kind of timeout

Open evilpie opened this issue 9 years ago • 3 comments

A few tests hang in SpiderMonkey and just occupy an agent forever.

Aside: I tried doing something like `--hostArgs="-e 'timeout(3)'", but that doesn't work here because host-arguments are appended after the file. Usually on Linux I think it is more common to pass optional flags before positional arguments.

evilpie avatar Aug 18 '16 20:08 evilpie

I can move the position of host arguments.

I am working on a timeout as we speak but it requires plumbing work. Step 1 is to add a .kill() or somesuch to eshost (it already has .destroy() but 1, it doesn't kill a host if it's busy, and 2, I probably don't want to entirely tear down a browser host). Then a timeout is pretty easy to add into test262-harness.

bterlson avatar Aug 18 '16 22:08 bterlson

Will hopefully finish this weekend, no promises though (tee hee)!

bterlson avatar Aug 18 '16 22:08 bterlson

eshost 3.3 has Agent#stop() for stopping long-running scripts. I have a change in the works to use this capability in test262-harness but realized raw tests always timeout in the browser (or, in the current version, hang) so I'm trying to think of a way to solve this.

bterlson avatar Sep 06 '16 23:09 bterlson