kc3-lang/libevent/test/tinytest_demo.c

Branch :


Log

Author Commit Date CI Message
63b065be 2018-11-20 01:06:04 regress: introduce TT_RETRIABLE We have some tests that has false-positive due to real/CPU time bound, but they are pretty generic and we do not want to skip them by default. TT_RETRIABLE is the flag that will indicate tinytest to retry the test in case of failure, use it to avoid next possible false-positives: - real time-related - CPU time-related Since I guess it is better to see/grepping RETRYING messages over ignoring completely failed builds. No configuration switch for number of retries was done on purpose (only 3 retries and no more). And this is how it looks BTW: $ gcc ../test/tinytest_demo.c ../test/tinytest.c $ ./a.out --verbose --no-fork demo/timeout_retry demo/timeout_retry: FAIL ../test/tinytest_demo.c:201: assert(i != 1): 1 vs 1 [timeout_retry FAILED] [RETRYING timeout_retry (3)] demo/timeout_retry: OK ../test/tinytest_demo.c:201: assert(i != 1): 2 vs 1 OK ../test/tinytest_demo.c:213: assert(t2-t1 >= 4): 5 vs 4 OK ../test/tinytest_demo.c:215: assert(t2-t1 <= 6): 5 vs 6 1 tests ok. (0 skipped)
f062bbe3 2016-02-24 14:02:37 test/tinytest_demo: include <windows.h> for win32 to fix tdm-gcc From: @gvanem Fixes: #325
7a804767 2014-03-06 18:09:00 Update to the latest version of tinytest This brings us up to tinytest 709a36ba63ff16d8
ef7c4f79 2012-06-28 12:58:46 Update to latest tinytest (911b4f0349377)
a9dc063c 2012-02-13 17:30:46 Merge in a punctuation fix from upstream tinytest
e49e2891 2012-02-10 17:29:53 Update copyright notices to 2012
3c824bd3 2011-10-24 13:18:09 Update copyright dates to 2011.
f0bd83ea 2010-09-09 16:13:09 Bump to the latest version of tinytest This lets us do without libevent-specific code in tinytest.c, and lets us add a feature to skip individual tests from the command line.
17efc1cd 2010-03-04 01:25:51 Update all our copyright notices to say "2010"
e5bbd40a 2010-02-18 17:41:15 Clean up formatting: use tabs, not 8-spaces, to indent.
a8203b34 2009-01-29 23:19:57 Refactor unit tests using my spiffy new "tinytest" framework. The big win here is that we can get process-level isolation. This has been tested to work okay on at least Linux and Win32. Only the tests in regress.c have been converted wrapped in the new wrapper functions; the others are still on the old system. svn:r1073