]> git.ipfire.org Git - thirdparty/tor.git/log
thirdparty/tor.git
13 years agoFix tor_strtok_r_impl and test cases per bug #5091
nils [Fri, 30 Mar 2012 15:01:21 +0000 (11:01 -0400)] 
Fix tor_strtok_r_impl and test cases per bug #5091

==

Nick here. I tweaked this patch a little to make it apply cleanly to
master, to extract some common code into a function, and to replace
snprintf with tor_snprintf.

-- nickm

13 years agoHave tor_parse_*long functions check for negative bases
Nick Mathewson [Fri, 30 Mar 2012 14:34:05 +0000 (10:34 -0400)] 
Have tor_parse_*long functions check for negative bases

One of our unit tests checks that they behave correctly (giving an
error) when the base is negative.  But there isn't a guarantee that
strtol and friends actually handle negative bases correctly.

Found by Coverity Scan; fix for CID 504.

13 years agoFix a couple of "unused assigned value" warnings in parse_config tests
Nick Mathewson [Fri, 30 Mar 2012 14:26:34 +0000 (10:26 -0400)] 
Fix a couple of "unused assigned value" warnings in parse_config tests

Coverity doesn't like the fact that we were storing the value of
parse_config_line_from_str() but not checking it in a couple of
cases.

Fixes CID 505 and 506.

13 years agoFix a memory leak in an error case of SAFECOOKIE authentication.
Nick Mathewson [Fri, 30 Mar 2012 14:20:48 +0000 (10:20 -0400)] 
Fix a memory leak in an error case of SAFECOOKIE authentication.

Found by Coverity Scan; fix for CID 507; bugfix on 0.2.3.13-alpha.

13 years agoRemove a couple redundant NULL-checks before crypto_cipher_free
Nick Mathewson [Fri, 30 Mar 2012 14:16:58 +0000 (10:16 -0400)] 
Remove a couple redundant NULL-checks before crypto_cipher_free

Calling crypto_cipher_free(NULL) is always safe, since (by
convention) all of our xyz_free() functions treat xyz_free(NULL) as
a no-op.

Flagged by coverity scan; fixes CID 508 and 509.

13 years agoMerge branch 'bug5527'
Nick Mathewson [Fri, 30 Mar 2012 14:15:35 +0000 (10:15 -0400)] 
Merge branch 'bug5527'

13 years agoMove router lookup to _after_ we assert that its argument is set
Nick Mathewson [Fri, 30 Mar 2012 14:14:31 +0000 (10:14 -0400)] 
Move router lookup to _after_ we assert that its argument is set

A previous commit in the 5527 branch had moved
router_get_mutable_by_digest(digest_rcvd) to happen before we did
tor_assert(digest_rcvd), which would have defeated the purpose of
the assert.

13 years agoMerge remote-tracking branch 'linus/empty_desc_stats'
Nick Mathewson [Fri, 30 Mar 2012 14:06:21 +0000 (10:06 -0400)] 
Merge remote-tracking branch 'linus/empty_desc_stats'

13 years agoAdd changes file.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Add changes file.

13 years agochecking "same addr/port but with nonmatching keys" is obsolete
Roger Dingledine [Thu, 29 Mar 2012 20:45:25 +0000 (16:45 -0400)] 
checking "same addr/port but with nonmatching keys" is obsolete

Specifically, I believe it dates back to when extend cells had address:port
but no digest in them. The special edge case is certainly not worth the
complexity these days.

13 years agosimplify further
Roger Dingledine [Thu, 29 Mar 2012 20:37:50 +0000 (16:37 -0400)] 
simplify further

13 years agoRefactor dirserv_orconn_tls_done().
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Refactor dirserv_orconn_tls_done().

Look up the router using the digest instead of looping over all routers.

13 years agoMerge remote-tracking branch 'linus/bug4875_2'
Nick Mathewson [Thu, 29 Mar 2012 14:53:09 +0000 (10:53 -0400)] 
Merge remote-tracking branch 'linus/bug4875_2'

13 years agonote that bug 5151 is on 0.2.3.9-alpha
Nick Mathewson [Wed, 28 Mar 2012 21:19:24 +0000 (17:19 -0400)] 
note that bug 5151 is on 0.2.3.9-alpha

13 years agoMerge remote-tracking branch 'linus/bug5151'
Nick Mathewson [Wed, 28 Mar 2012 21:18:30 +0000 (17:18 -0400)] 
Merge remote-tracking branch 'linus/bug5151'

13 years agoAdd changes file.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Add changes file.

13 years agoMake relays handle an address suggestion from a directory server giving an IPv6 address.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Make relays handle an address suggestion from a directory server giving an IPv6 address.

last_guessed_ip becomes a tor_addr_t.

Most parts of router_new_address_suggestion() learns
about IPv6 (resolve_my_address() is still IPv4 only).

13 years agoDon't try to generate stats from an empty served_descs.
Linus Nordberg [Tue, 27 Mar 2012 13:00:34 +0000 (15:00 +0200)] 
Don't try to generate stats from an empty served_descs.

13 years agoFix a bunch of check-spaces complaints
Sebastian Hahn [Wed, 28 Mar 2012 13:02:15 +0000 (15:02 +0200)] 
Fix a bunch of check-spaces complaints

13 years agotab-man strikes back (fixup on a9c0e9fec2)
Roger Dingledine [Wed, 28 Mar 2012 08:06:56 +0000 (04:06 -0400)] 
tab-man strikes back (fixup on a9c0e9fec2)

13 years agoWrite initial documentation for the contents of the state file
Nick Mathewson [Wed, 28 Mar 2012 08:08:07 +0000 (04:08 -0400)] 
Write initial documentation for the contents of the state file

Fixes bug 2987.  There is still some information to go, but now we
have a place to put it.

13 years agoMerge branch 'bug4011'
Nick Mathewson [Wed, 28 Mar 2012 07:33:00 +0000 (03:33 -0400)] 
Merge branch 'bug4011'

13 years agoKeep separate time-to-downloads for each consensus flavor
Nick Mathewson [Wed, 28 Mar 2012 06:55:33 +0000 (02:55 -0400)] 
Keep separate time-to-downloads for each consensus flavor

This is a fix for bug 4011, where if we have a recent ns consensus we
won't even try fetching a microdesc consensus.  Fix on 0.2.3.1-alpha,
I believe.

13 years agoMerge branch 'openssl101_aes_ctr_rebased'
Nick Mathewson [Wed, 28 Mar 2012 02:41:10 +0000 (22:41 -0400)] 
Merge branch 'openssl101_aes_ctr_rebased'

13 years agoExcise PK_NO_PADDING entirely: Unpadded RSA is silly.
Nick Mathewson [Tue, 27 Mar 2012 21:57:18 +0000 (17:57 -0400)] 
Excise PK_NO_PADDING entirely: Unpadded RSA is silly.

We never use it, so having it around is pointless.

Suggested by Sebastian

13 years agoUse OpenSSL 1.0.1's EVP aes_ctr implementation when available
Nick Mathewson [Tue, 20 Mar 2012 17:51:11 +0000 (13:51 -0400)] 
Use OpenSSL 1.0.1's EVP aes_ctr implementation when available

This should be really fast on Intel chips.

13 years agoRefactor the API for setting up a block cipher.
Nick Mathewson [Tue, 20 Mar 2012 19:35:43 +0000 (15:35 -0400)] 
Refactor the API for setting up a block cipher.

It allows us more flexibility on the backend if the user needs to
specify the key and IV at setup time.

13 years agoRemove support for PK_NO_PADDING in crypto_pk_public_hybrid_encrypt
Nick Mathewson [Thu, 8 Mar 2012 19:51:57 +0000 (14:51 -0500)] 
Remove support for PK_NO_PADDING in crypto_pk_public_hybrid_encrypt

We never use it, and it would be a stupid thing if we started using it.

13 years agoChangelog for torify changes
Nick Mathewson [Tue, 27 Mar 2012 22:46:47 +0000 (18:46 -0400)] 
Changelog for torify changes

Also reinstate the part of the torify script that checks for torsocks
being installed, so that we can give a more useful message in case it
isn't.

13 years agoRemove tsocks support from torify.
Nick Mathewson [Tue, 27 Mar 2012 22:43:18 +0000 (18:43 -0400)] 
Remove tsocks support from torify.

Fixes bug3530 and bug 5180. Patch by ugh.

13 years agoLog statement to help track down bug4091
Nick Mathewson [Tue, 27 Mar 2012 22:28:39 +0000 (18:28 -0400)] 
Log statement to help track down bug4091

13 years agoMerge remote-tracking branch 'karsten/bug5053'
Nick Mathewson [Tue, 27 Mar 2012 15:22:32 +0000 (11:22 -0400)] 
Merge remote-tracking branch 'karsten/bug5053'

13 years agoProvide large enough buffer in test_util_sscanf()
Sebastian Hahn [Tue, 27 Mar 2012 12:04:15 +0000 (14:04 +0200)] 
Provide large enough buffer in test_util_sscanf()

This was causing crashes during unit test runs, as stack smashing
protections got triggered. Issue spotted by weasel

13 years agobump to 0.2.3.13-alpha-dev
Roger Dingledine [Tue, 27 Mar 2012 05:26:01 +0000 (01:26 -0400)] 
bump to 0.2.3.13-alpha-dev

13 years agomerge in the safecookie changelog entry too tor-0.2.3.13-alpha
Roger Dingledine [Tue, 27 Mar 2012 02:15:02 +0000 (22:15 -0400)] 
merge in the safecookie changelog entry too

13 years agomerge the change that 2f3ec43e5b4e wanted to merge
Roger Dingledine [Tue, 27 Mar 2012 02:12:52 +0000 (22:12 -0400)] 
merge the change that 2f3ec43e5b4e wanted to merge

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 26 Mar 2012 22:51:37 +0000 (18:51 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/or/control.c

13 years agoSafe cookie authentication gets a changes file
Nick Mathewson [Mon, 26 Mar 2012 18:06:27 +0000 (14:06 -0400)] 
Safe cookie authentication gets a changes file

13 years agoMerge remote-tracking branch 'rransom-tor/safecookie-022-v3' into maint-0.2.2
Nick Mathewson [Mon, 26 Mar 2012 18:03:29 +0000 (14:03 -0400)] 
Merge remote-tracking branch 'rransom-tor/safecookie-022-v3' into maint-0.2.2

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 26 Mar 2012 18:02:11 +0000 (14:02 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

This is an "-s ours" commit to avoid taking a5704b1c624c9a808f5,
which was a cherry-picked backport of fdbb9cdf746bbf0c39c34 to add
a SHA256-HMAC function.

13 years agoMerge commit 'a5704b1c624c9a808f52f3a125339f00e2b9a378' into maint-0.2.2
Nick Mathewson [Mon, 26 Mar 2012 17:59:49 +0000 (13:59 -0400)] 
Merge commit 'a5704b1c624c9a808f52f3a125339f00e2b9a378' into maint-0.2.2

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Mon, 26 Mar 2012 17:57:51 +0000 (13:57 -0400)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
changes/bug5090

bug5090 was already merged and corrected in the master branch's changelog.

13 years agobump to 0.2.3.13-alpha
Roger Dingledine [Mon, 26 Mar 2012 04:01:46 +0000 (00:01 -0400)] 
bump to 0.2.3.13-alpha

13 years agocleanup and blurb for 0.2.3.13-alpha
Roger Dingledine [Mon, 26 Mar 2012 03:58:12 +0000 (23:58 -0400)] 
cleanup and blurb for 0.2.3.13-alpha

13 years agofold in latest changes entries
Roger Dingledine [Mon, 26 Mar 2012 03:19:44 +0000 (23:19 -0400)] 
fold in latest changes entries

13 years agoexplain that bug 5090 allows a post-auth heap overflow
Roger Dingledine [Mon, 26 Mar 2012 03:09:23 +0000 (23:09 -0400)] 
explain that bug 5090 allows a post-auth heap overflow

resolves bug 5402.

13 years agoNever disable debugger attachment for the unit tests
Sebastian Hahn [Thu, 22 Mar 2012 11:50:44 +0000 (12:50 +0100)] 
Never disable debugger attachment for the unit tests

13 years agoShorten links to law.cornell.edu for exit-note file
Christian Kujau [Sat, 17 Mar 2012 12:45:36 +0000 (13:45 +0100)] 
Shorten links to law.cornell.edu for exit-note file

The links we have currently redirect to those new files now.

13 years agoMove the logging of 'My line' to debug level (#5151).
Linus Nordberg [Mon, 19 Mar 2012 04:12:19 +0000 (05:12 +0100)] 
Move the logging of 'My line' to debug level (#5151).

13 years agoReorder initialisation of port_cfg to match order of members in struct.
Linus Nordberg [Mon, 19 Mar 2012 03:57:19 +0000 (04:57 +0100)] 
Reorder initialisation of port_cfg to match order of members in struct.

13 years agoFix cut'n'paste bug (#5151).
Linus Nordberg [Mon, 19 Mar 2012 03:55:17 +0000 (04:55 +0100)] 
Fix cut'n'paste bug (#5151).

13 years agomerge in the changes files so far
Roger Dingledine [Thu, 15 Mar 2012 03:54:26 +0000 (23:54 -0400)] 
merge in the changes files so far

13 years agoStop discarding command-line arguments when TestingTorNetwork is set
Roger Dingledine [Wed, 14 Mar 2012 06:40:04 +0000 (02:40 -0400)] 
Stop discarding command-line arguments when TestingTorNetwork is set

Discovered by Kevin Bauer. Fixes bug 5373; bugfix on 0.2.3.9-alpha,
where task 4552 added support for two layers of torrc files.

13 years agoretroactively say which ticket the defaults torrc patch was
Roger Dingledine [Wed, 14 Mar 2012 06:31:18 +0000 (02:31 -0400)] 
retroactively say which ticket the defaults torrc patch was

13 years agoFix spelling of Esteban Manchado Velázquez.
Nick Mathewson [Mon, 12 Mar 2012 17:12:13 +0000 (13:12 -0400)] 
Fix spelling of Esteban Manchado Velázquez.

13 years agoClose fds on pipe() error in tor_spawn_background().
George Kadianakis [Mon, 24 Oct 2011 14:34:10 +0000 (16:34 +0200)] 
Close fds on pipe() error in tor_spawn_background().

13 years agoUse a given name in the bug5090 message, at its holder's request.
Nick Mathewson [Fri, 9 Mar 2012 19:50:46 +0000 (14:50 -0500)] 
Use a given name in the bug5090 message, at its holder's request.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 9 Mar 2012 19:30:12 +0000 (14:30 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/or/circuitbuild.c

13 years agoNever choose a bridge as an exit. Bug 5342.
Nick Mathewson [Fri, 9 Mar 2012 19:27:50 +0000 (14:27 -0500)] 
Never choose a bridge as an exit. Bug 5342.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 9 Mar 2012 19:25:18 +0000 (14:25 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoRevise "sufficient exit nodes" check to work with restrictive ExitNodes
Nick Mathewson [Fri, 9 Mar 2012 19:23:23 +0000 (14:23 -0500)] 
Revise "sufficient exit nodes" check to work with restrictive ExitNodes

If you set ExitNodes so that only 1 exit node is accepted, the
previous patch would have made you unable to build circuits.

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 9 Mar 2012 18:57:32 +0000 (13:57 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

Conflicts:
src/or/routerlist.c

13 years agoMerge branch 'bug5343' into maint-0.2.2
Nick Mathewson [Fri, 9 Mar 2012 18:54:04 +0000 (13:54 -0500)] 
Merge branch 'bug5343' into maint-0.2.2

13 years agoMerge remote-tracking branch 'origin/maint-0.2.2'
Nick Mathewson [Fri, 9 Mar 2012 16:54:45 +0000 (11:54 -0500)] 
Merge remote-tracking branch 'origin/maint-0.2.2'

13 years agoOops; credit bug5090 patch to flupzor. estebanm only found the bug.
Nick Mathewson [Fri, 9 Mar 2012 16:54:27 +0000 (11:54 -0500)] 
Oops; credit bug5090 patch to flupzor. estebanm only found the bug.

13 years agoCorrectly handle broken escape sequences in torrc values
Nick Mathewson [Fri, 9 Mar 2012 16:50:22 +0000 (11:50 -0500)] 
Correctly handle broken escape sequences in torrc values

Previously, malformatted torrc values could crash us.

Patch by Esteban Manchado.  Fixes bug 5090; fix on 0.2.0.16-alpha.

13 years agochanges file for extra-tests branch
Nick Mathewson [Fri, 9 Mar 2012 02:10:17 +0000 (21:10 -0500)] 
changes file for extra-tests branch

13 years agoDisable some tor_sscanf tests that gcc says are illegal formats
Nick Mathewson [Fri, 9 Mar 2012 02:01:19 +0000 (21:01 -0500)] 
Disable some tor_sscanf tests that gcc says are illegal formats

13 years agoFix new strcmp_opt/len tests on OSs where strcmp() can return values >1 or <-1
Nick Mathewson [Fri, 9 Mar 2012 02:00:57 +0000 (21:00 -0500)] 
Fix new strcmp_opt/len tests on OSs where strcmp() can return values >1 or <-1

13 years agoAdd unit tests for path_is_relative
Esteban Manchado Velázquez [Mon, 20 Feb 2012 21:53:25 +0000 (22:53 +0100)] 
Add unit tests for path_is_relative

13 years agoSome more corner cases for tor_sscanf
Esteban Manchado Velázquez [Mon, 20 Feb 2012 21:53:08 +0000 (22:53 +0100)] 
Some more corner cases for tor_sscanf

13 years agoexpand_filename tests for trailing slash in $HOME
Esteban Manchado Velázquez [Mon, 20 Feb 2012 21:52:15 +0000 (22:52 +0100)] 
expand_filename tests for trailing slash in $HOME

13 years agoAdd some tests for expand_filename
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:42:48 +0000 (17:42 +0100)] 
Add some tests for expand_filename

13 years agoAdd two small tests for tor_sscanf
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:00:16 +0000 (17:00 +0100)] 
Add two small tests for tor_sscanf

13 years agoAdd test for broken escapes in parse_config_...
Esteban Manchado Velázquez [Mon, 20 Feb 2012 16:39:43 +0000 (17:39 +0100)] 
Add test for broken escapes in parse_config_...

13 years agoAdd some unit tests for parse_iso_time
Esteban Manchado Velázquez [Mon, 20 Feb 2012 15:57:30 +0000 (16:57 +0100)] 
Add some unit tests for parse_iso_time

13 years agoAdd tests for string_is_C_identifier
Esteban Manchado Velázquez [Mon, 20 Feb 2012 12:24:22 +0000 (13:24 +0100)] 
Add tests for string_is_C_identifier

13 years agoImprove coverage in string-related unit tests
Esteban Manchado Velázquez [Mon, 20 Feb 2012 12:20:32 +0000 (13:20 +0100)] 
Improve coverage in string-related unit tests

13 years agoImprove coverage in time-related unit tests
Esteban Manchado Velázquez [Mon, 20 Feb 2012 12:19:03 +0000 (13:19 +0100)] 
Improve coverage in time-related unit tests

13 years agoRemove unreliable assertion
Esteban Manchado Velázquez [Sat, 18 Feb 2012 18:29:48 +0000 (19:29 +0100)] 
Remove unreliable assertion

* This assertion fails when executing the whole suite, but not when executing
  this test by itself
* Ideally I'd prefer starting with a guaranteed empty directory, but it's not
  very important in this case as non-existence of other paths is being checked
  explicitly

13 years agoAdd extra tests for wrap_string
Esteban Manchado Velázquez [Sat, 11 Feb 2012 21:44:25 +0000 (22:44 +0100)] 
Add extra tests for wrap_string

13 years agoAdd extra tests for get_parent_directory
Esteban Manchado Velázquez [Sat, 11 Feb 2012 21:43:42 +0000 (22:43 +0100)] 
Add extra tests for get_parent_directory

13 years agoTweak test case text so it's clearer
Esteban Manchado Velázquez [Sat, 11 Feb 2012 21:33:49 +0000 (22:33 +0100)] 
Tweak test case text so it's clearer

13 years agoImprove eat_whitespace* unit tests
Esteban Manchado Velázquez [Sat, 11 Feb 2012 00:27:50 +0000 (01:27 +0100)] 
Improve eat_whitespace* unit tests

13 years agoPut expected first in n_bits_set_u8 unit tests
Esteban Manchado Velázquez [Sat, 11 Feb 2012 00:20:09 +0000 (01:20 +0100)] 
Put expected first in n_bits_set_u8 unit tests

13 years agoImprove tor_split_lines unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 23:30:11 +0000 (00:30 +0100)] 
Improve tor_split_lines unit tests

* Add some more test cases
* Switch to test_assert et al

13 years agoUse test_streq in join_win_cmdline unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 23:04:24 +0000 (00:04 +0100)] 
Use test_streq in join_win_cmdline unit tests

13 years agoUse test_eq et al in spawn_background unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 23:00:52 +0000 (00:00 +0100)] 
Use test_eq et al in spawn_background unit tests

13 years agoUse test_streq in format_helper_exit_status tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 22:41:39 +0000 (23:41 +0100)] 
Use test_streq in format_helper_exit_status tests

13 years agoImprove get_parent_directory unit tests
Esteban Manchado Velázquez [Fri, 10 Feb 2012 22:33:37 +0000 (23:33 +0100)] 
Improve get_parent_directory unit tests

* Add more test cases to the get_parent_directory tests
* Switch the parameter order so that the expected value is the first one

13 years agoImprove listdir unit tests
Esteban Manchado Velázquez [Thu, 9 Feb 2012 23:42:08 +0000 (00:42 +0100)] 
Improve listdir unit tests

13 years agoImprove a bit asprintf unit tests
Esteban Manchado Velázquez [Thu, 9 Feb 2012 23:21:00 +0000 (00:21 +0100)] 
Improve a bit asprintf unit tests

13 years agoRewrite the find_str_at_start_of_line unit tests
Esteban Manchado Velázquez [Wed, 8 Feb 2012 22:45:53 +0000 (23:45 +0100)] 
Rewrite the find_str_at_start_of_line unit tests

13 years agoImprove/extend strtok_r unit tests
Esteban Manchado Velázquez [Wed, 8 Feb 2012 22:28:21 +0000 (23:28 +0100)] 
Improve/extend strtok_r unit tests

* Add several failing tests (embedded in an "#if 0" block) for behaviour that
  doesn't match strtok_r
* Add another, passing, more interesting test
* Use test_eq_ptr(NULL, ...) instead of test_assert(NULL == ...)

13 years agoImprove tor_sscanf tests
Esteban Manchado Velázquez [Mon, 6 Feb 2012 21:05:47 +0000 (22:05 +0100)] 
Improve tor_sscanf tests

* Add many new test cases, tweak/improve existing ones, reorganize them a bit
* Switch the parameters in all test_eq calls so the expected value is the first
* Change all the "r = tor_sscanf(...);\ntest_eq(1, r)" to the more compact
  "test_eq(1, tor_sscanf(...))". It may be a tiny bit harder to find the
  tor_sscanf calls (it's the long lines anyway), but it saves a lot of lines,
  which should help readability.

13 years agoSmall fix in tor_sscanf documentation
Esteban Manchado Velázquez [Mon, 6 Feb 2012 21:04:24 +0000 (22:04 +0100)] 
Small fix in tor_sscanf documentation

13 years agoImprove test case for read_escaped_data unit test
Esteban Manchado Velázquez [Mon, 6 Feb 2012 18:53:07 +0000 (19:53 +0100)] 
Improve test case for read_escaped_data unit test

13 years agoTrivial readability changes in mmap unit tests
Esteban Manchado Velázquez [Mon, 6 Feb 2012 18:45:52 +0000 (19:45 +0100)] 
Trivial readability changes in mmap unit tests

13 years agoClean up and improve gzip unit tests
Esteban Manchado Velázquez [Mon, 6 Feb 2012 18:22:32 +0000 (19:22 +0100)] 
Clean up and improve gzip unit tests

* Switch some test_eq parameters so the expected is always the first parameter
* Drop some manual checks of compressed format magic numbers (they're pointless
  and they make the unit tests less readable and more fragile, considering
  we're already indirectly checking those magic numbers via the
  detect_compression_method function)
* Add a couple of extra assertions

13 years agoAdd/improve the rest of the strmisc tests
Esteban Manchado Velázquez [Sun, 5 Feb 2012 21:01:57 +0000 (22:01 +0100)] 
Add/improve the rest of the strmisc tests