[Windows] Add 10s timeout to some WaitForSingleObject calls
authorReid Kleckner <rnk@google.com>
Fri, 19 Feb 2016 17:30:38 +0000 (17:30 +0000)
committerReid Kleckner <rnk@google.com>
Fri, 19 Feb 2016 17:30:38 +0000 (17:30 +0000)
commit00203bc60bfb956c6969d9a673c1f55f3ed09e1b
treef0bd9695a627bcd4427b84dc4cfb3aae6f2080bc
parent171313c69a1d6e881cb28ecd8a549675c150e920
[Windows] Add 10s timeout to some WaitForSingleObject calls

I ran the test suite yesterday and when I came back this morning the
queue_user_work_item.cc test was hung. This could be why the
sanitizer-windows buildbot keeps randomly timing out. I updated all the
usages of WaitForSingleObject involving threading events. I'm assuming
the API can reliably wait for subprocesses, which is what the majority
of call sites use it for.

While I'm at it, we can simplify some EH tests now that clang can
compile C++ EH.

llvm-svn: 261338
compiler-rt/test/asan/TestCases/Windows/bind_io_completion_callback.cc
compiler-rt/test/asan/TestCases/Windows/queue_user_work_item.cc
compiler-rt/test/asan/TestCases/Windows/queue_user_work_item_report.cc