aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_util.c
Commit message (Expand)AuthorAge
* Merge commit 'origin/maint-0.2.1'•••Conflicts: src/or/test.c Nick Mathewson2010-04-12
* Merge branch 'asprintf'Nick Mathewson2010-04-02
|\
| * Add a tor_asprintf() function, and use it in a couple of places.•••asprintf() is a GNU extension that some BSDs have picked up: it does a printf into a newly allocated chunk of RAM. Our tor_asprintf() differs from standard asprintf() in that: - Like our other malloc functions, it asserts on OOM. - It works on windows. - It always sets its return-field. Nick Mathewson2010-02-25
* | Update copyright dates for files not in maint-0.2.1Nick Mathewson2010-02-27
|/
* Rearrange _thread_test_func to please Coverity Scan•••I believe that since we were allocating *cp while holding a mutex, coverity deduced that *cp must be protected by that mutex, and later flipped out when we didn't use it that way. If this is so, we can solve our problems by moving the *cp = tor_strdup(buf) part outside of the mutex-protected code. Nick Mathewson2010-01-25
* Remove duplicate words and a duplicate newline.Karsten Loesing2009-12-18
* Refactor out the 'find string at start of any line' logic.•••We do this in too many places throughout the code; it's time to start clamping down. Also, refactor Karsten's patch to use strchr-then-strndup, rather than malloc-then-strlcpy-then-strchr-then-clear. Nick Mathewson2009-12-17
* Fix the very noisy unit test memory leak of CID 420-421.•••On any failing case in test_util_config_line, we would leak a couple of strings. Nick Mathewson2009-10-26
* Split directory tests into their own module.•••(Also, clean up some whitespace.) Nick Mathewson2009-09-23
* Split test_util() into smaller functions.Nick Mathewson2009-09-23
* Split general util and address tests into their own files.Nick Mathewson2009-09-23