summaryrefslogtreecommitdiff
path: root/test/abts.c
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespaces in *.c.Ivan Zhakov2022-11-201-8/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1905414 13f79535-47bb-0310-9956-ffa450edef68
* test/abts: Follow up to r1902191: Fix IMPL_abts_T_nequal.Yann Ylavic2022-06-231-1/+1
| | | | | | | | | * test/abts.c(IMPL_abts_T_nequal): Invert logic from IMPL_abts_T_equal (bad copypasta) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902192 13f79535-47bb-0310-9956-ffa450edef68
* test/abts: More numeric types to compare/assert.Yann Ylavic2022-06-231-42/+44
| | | | | | | | | | | | | * test/abts.h(): Declare abts_{uint,long,ulong,llong,ullong}_{n,}equal() and the corresponding ABTS_{UINT,LONG,ULONG,LLONG,ULLONG}_{N,}EQUAL() wrappers. * test/abts.c(): Implement abts_{uint,long,ulong,llong,ullong}_{n,}equal() using a common macro. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1902191 13f79535-47bb-0310-9956-ffa450edef68
* test: fix memory leaks of the test framework at exit.Yann Ylavic2021-09-101-1/+17
| | | | | | | To please memory leak analysers.. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1893202 13f79535-47bb-0310-9956-ffa450edef68
* Added support for recording skipped test cases.Branko Čibej2020-05-061-7/+60
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1877441 13f79535-47bb-0310-9956-ffa450edef68
* Fix error message from ABTS_INT_NEQUAL() and ABTS_STR_NEQUAL().Jeff Trawick2013-11-121-2/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1541054 13f79535-47bb-0310-9956-ffa450edef68
* support Windows-style paths when checking for absolute pathsJeff Trawick2013-08-211-0/+3
| | | | | | | (e.g., cmake-based out of tree build) git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@1516261 13f79535-47bb-0310-9956-ffa450edef68
* small cosmetic fix to sync with other output.Guenter Knauf2009-10-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@825918 13f79535-47bb-0310-9956-ffa450edef68
* fixed error message in abts_ptr_notnull() and avoidGuenter Knauf2009-10-131-1/+1
| | | | | | | printing a NULL pointer. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@824549 13f79535-47bb-0310-9956-ffa450edef68
* Correct license statements to the ASF labeling policy. Note major partsWilliam A. Rowe Jr2008-05-281-8/+6
| | | | | | | | | | | | | | of all of apr are already Copyright Ryan Bloom; this is captured in the commit history. However this statement is no longer complete as the code has been modified by other committers, the generic statement is more appropiate. If there is a canonical home for abts, this instead should be noted in these source files. I'm not aware Ryan is maintaining one, apparently http://rkbloom.net/os.html is the homepage, but the links are broken. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@661023 13f79535-47bb-0310-9956-ffa450edef68
* Add a comment, and represent in base 10William A. Rowe Jr2007-10-091-1/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@583243 13f79535-47bb-0310-9956-ffa450edef68
* Fix invalid function casts (which are compiled as abort() by recentJoe Orton2007-10-091-0/+14
| | | | | | | | | | versions of gcc): * test/abts.h, test/abts.c (abts_size_equal): New function; use it in ABTS_SIZE_EQUAL. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@583104 13f79535-47bb-0310-9956-ffa450edef68
* It's *really* nasty to pipe these results to a file,William A. Rowe Jr2007-10-061-0/+3
| | | | | | | | let's knock of the pretty spinning wheels for text results, ok? git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@582542 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts.c (abts_run_test): Avoid the malloc/free.Joe Orton2004-07-081-7/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65272 13f79535-47bb-0310-9956-ffa450edef68
* Bring over the display fix from apr-util.David Reid2004-06-291-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65238 13f79535-47bb-0310-9956-ffa450edef68
* Bring in the patch from apr-util that allows for NULL strings to be passedDavid Reid2004-06-211-1/+3
| | | | | | | into abts_str_equal. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65210 13f79535-47bb-0310-9956-ffa450edef68
* Merge from ABTS svn repo. Don't pring success message when -l is used.Ryan Bloom2004-06-081-0/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65173 13f79535-47bb-0310-9956-ffa450edef68
* Add back the -l option to the apr test suite. This allows the test suiteRyan Bloom2004-06-051-4/+16
| | | | | | | to list all available tests. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65166 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts.c (abts_add_suite): Fix for non-absolute __FILE__Joe Orton2004-06-041-3/+5
| | | | | | | expansion; NULL + 1 != NULL. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65150 13f79535-47bb-0310-9956-ffa450edef68
* Various test suite improvements to actually test the global mutex code with allJustin Erenkrantz2004-06-041-2/+8
| | | | | | | | | | | | of the available methods. abts.c: Properly strip prefix and .c extension (was broken if . character is in your path!); specify 'testfoo' rather than 'path/to/testfoo' now globalmutexchild.c: Pass along the mutex mechanism to the child via args[1]. testglobalmutex.c: Invoke test for every global mutex method available. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65148 13f79535-47bb-0310-9956-ffa450edef68
* List all local variable first otherwise the Metrowerks compiler complainsBradley Nicholes2004-05-241-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65127 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts.c (abts_add_suite): Use calloc/memcpy rather thanJoe Orton2004-05-241-1/+2
| | | | | | | strndup. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65125 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts.c (abts_add_suite): Strip .c extension from subsuite name.Joe Orton2004-05-241-3/+8
| | | | git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65124 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts.c (abts_ptr_notnull, abts_assert, abts_true,Joe Orton2004-05-241-4/+4
| | | | | | | abts_not_impl): Consistently add a newline after an error message. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65119 13f79535-47bb-0310-9956-ffa450edef68
* Fix the output from -q. Now, there are no control characters printed whenRyan Bloom2004-05-231-3/+6
| | | | | | | using -q mode. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65115 13f79535-47bb-0310-9956-ffa450edef68
* Add the line number to the verbose output from abts. This also removesRyan Bloom2004-05-141-20/+20
| | | | | | | a test that is segfaulting in testshm. That will need to be fixed. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65095 13f79535-47bb-0310-9956-ffa450edef68
* * test/abts.c (report): Just print "success" if there were no failures.Joe Orton2004-05-141-7/+22
| | | | | | | | (update_status, main): Suppress the spinning bar if -q is used, and fix calloc usage. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65094 13f79535-47bb-0310-9956-ffa450edef68
* Move the APR test suite from CuTest to abts. The output is cleaner,Ryan Bloom2004-05-131-0/+365
and it prints output while running the test. Also, if a test fails the rest of the test function is run, allowing for proper cleanup. Finally, it is possible to call the same function multiple times with different data, and each call is considered a separate test. This is the first of a multi-step process to get a more useful test suite. git-svn-id: https://svn.apache.org/repos/asf/apr/apr/trunk@65091 13f79535-47bb-0310-9956-ffa450edef68