summaryrefslogtreecommitdiff
path: root/test/tinytest.h
Commit message (Collapse)AuthorAgeFilesLines
* test: retriable tests are marked failed only when all attempts have failedThomas Perrot2021-10-021-1/+1
| | | | Signed-off-by: Thomas Perrot <thomas.perrot@bootlin.com>
* regress: introduce TT_RETRIABLEAzat Khuzhin2018-11-201-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* Update to the latest version of tinytestNick Mathewson2014-03-061-0/+2
| | | | This brings us up to tinytest 709a36ba63ff16d8
* Fix tinytset_skip to work with new tinytest_set_flag_ signatureNick Mathewson2012-07-201-1/+1
|
* Update to latest tinytest (911b4f0349377)Nick Mathewson2012-06-281-2/+13
|
* Synchronize with upstream tinytestNick Mathewson2012-02-131-8/+8
|
* Update copyright notices to 2012Nick Mathewson2012-02-101-1/+1
|
* Update copyright dates to 2011.Nick Mathewson2011-10-241-1/+1
|
* Update all our copyright notices to say "2010"Nick Mathewson2010-03-041-1/+1
|
* Tinytest update: mostly just to allow test skipping.Nick Mathewson2009-01-311-0/+2
| | | | svn:r1080
* Refactor unit tests using my spiffy new "tinytest" framework.Nick Mathewson2009-01-291-0/+85
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