code-mx / googletest

Automatically exported from code.google.com/p/googletest
BSD 3-Clause "New" or "Revised" License
0 stars 0 forks source link

add timeouts to tests #348

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
it would be nice to implement timeouts for tests.
thus a test will fail if it does not complete successfully within the alloted 
time frame. makes it easier to impose performance restrictions on cerain 
operations, and also to make sure that if a certain test hangs, other test 
cases can run instead of aborting everything/

Original issue reported on code.google.com by avia...@gmail.com on 29 Dec 2010 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by w...@google.com on 4 Jan 2011 at 8:43

GoogleCodeExporter commented 9 years ago
+1 from WebKit: https://bugs.webkit.org/show_bug.cgi?id=84611 :)

Original comment by macd...@gmail.com on 23 Apr 2012 at 5:56

GoogleCodeExporter commented 9 years ago
+1 for time consuming operation and make sure the test isn't dead locked.

Original comment by fon...@gmail.com on 24 Mar 2014 at 12:54

GoogleCodeExporter commented 9 years ago
Isn't that pretty basic to be able to check that a test does not hang???

Original comment by climbera...@gmail.com on 11 Apr 2014 at 10:27

GoogleCodeExporter commented 9 years ago
agree with this. this way we can improve our applications performance as well.

Original comment by ra10ku...@gmail.com on 24 Jul 2014 at 5:18

GoogleCodeExporter commented 9 years ago
+1

I'm testing a multi-threaded worker type class. I need to verify that all the 
threads indeed do terminate and a join on them succeeds. If the threads don't 
terminate in a timely manner this is an error that I would like to test for. 
Otherwise my test program would never terminate and our test automation would 
get problems.

Original comment by bjoerk.e...@gmail.com on 10 Sep 2014 at 3:49

GoogleCodeExporter commented 9 years ago
Any news regarding this essential feature? if someone knows a temp way to 
implement this for a C/C++ code, please let us know.

Original comment by daniel.c...@gmail.com on 26 Sep 2014 at 1:12

GoogleCodeExporter commented 9 years ago
+1. Expecting the solution shortly

Original comment by anbu331...@gmail.com on 4 Oct 2014 at 6:04