testsuite/timeout: Ensure that processes are cleaned up on Windows
authorBen Gamari <bgamari.foss@gmail.com>
Mon, 17 Oct 2016 00:49:15 +0000 (20:49 -0400)
committerBen Gamari <ben@smart-cactus.org>
Mon, 17 Oct 2016 18:33:29 +0000 (14:33 -0400)
commitc6ee773a93397c197caa09db9f8d8145d9d930b0
tree64f74bbdd3b0445376dc05b333ceb2857fa6661a
parent8bb960eff05ef8171ce2632a62db89b4e96aff74
testsuite/timeout: Ensure that processes are cleaned up on Windows

Previously if the test is interrupted (e.g. with Ctrl-C) any processes
which it spawned may not be properly terminated. Here we catch any
exception and ensure that we job is terminated.

Test Plan: Validate on Windows

Reviewers: Phyx, austin

Subscribers: thomie

Differential Revision: https://phabricator.haskell.org/D2599
testsuite/timeout/timeout.hs