[LLVMdev] infinite looping on hashtables
Chris Lattner
clattner at apple.com
Wed Apr 29 17:18:18 PDT 2009
On Apr 28, 2009, at 5:08 PM, John McCall wrote:
>>
>> This test works fine, so long as it passes. If the observed failure
>> happens, it hangs at the set.count(2) call, and the Googletest
>> framework apparently doesn't catch hangs. (At least, it didn't wake
>> up after twenty minutes.)
>
> Unfortunately, it looks like the current Googletest framework doesn't
> support test timeouts or anything like them. You could probably hack
> it by creating a thread to sleep() for five seconds and then kill the
> current process, but ugh.
My take is: just add the test. If it infinite loops, then we'll know
there is a problem.
:)
More information about the llvm-dev
mailing list