aboutsummaryrefslogtreecommitdiff
path: root/src/test/test_config.c
AgeCommit message (Collapse)Author
2017-11-29Merge branch 'bug24050_029_squashed' into maint-0.3.2Nick Mathewson
2017-11-29Fix unit tests for 24050.Nick Mathewson
2017-11-18Fix memory leak in unit test for bridge distribution config.Nick Mathewson
Also, check for the actual message, and fix some string confusion, while we're at it. Fixes bug 24345; bugfix on 0.3.2.3-alpha.
2017-10-24Merge branch 'feature18329_029_squashed' into maint-0.3.2Nick Mathewson
2017-10-24Merge branch 'feature18329_029_squashed' into maint-0.3.2Nick Mathewson
2017-10-24Updates to fix check-spaces/check-changes warningsNick Mathewson
2017-10-24Adjust test to allow hyphens too.Nick Mathewson
2017-10-24test: Add unittest for descriptors with BridgeDistribution option.Isis Lovecruft
2017-10-23Merge branch 'maint-0.2.8' into maint-0.2.9Nick Mathewson
2017-10-23Merge branch 'maint-0.3.1' into maint-0.3.2Nick Mathewson
2017-10-23Merge branch 'maint-0.3.0' into maint-0.3.1Nick Mathewson
2017-10-23Merge branch 'maint-0.2.9' into maint-0.3.0Nick Mathewson
2017-10-23Adjust test, now that there are 9 dirauths againNick Mathewson
2017-10-04Don't expect permission failure if running as rootTaylor Yu
Skip test_config_include_no_permission() when running as root, because it will get an unexpected success from config_get_lines_include(). This affects some continuous integration setups. Fixes bug 23758.
2017-09-28Unit test for case where %included dir exists but is unreadableNick Mathewson
2017-09-28unit test for config_lines_dup_and_filterNick Mathewson
2017-09-15Replace accumulated C ;;s with ;sNick Mathewson
I don't know where these came from.
2017-09-15Merge branch 'scan-build-032'Nick Mathewson
2017-09-15Run our #else/#endif annotator on our source code.Nick Mathewson
2017-09-12Clear up dead-assignment warnings from scan-buildNick Mathewson
2017-08-24apply ahf's test_assert_null.cocciNick Mathewson
2017-08-24apply ahf's test_assert_int.cocciNick Mathewson
2017-08-24apply ahf's test_assert_zero.cocciNick Mathewson
2017-08-24Fix operator usage in src/test/*.cAlexander Færøy
This patch fixes the operator usage in src/test/*.c to use the symbolic operators instead of the normal C comparison operators. This patch was generated using: ./scripts/coccinelle/test-operator-cleanup src/test/*.[ch]
2017-08-04Fix memory leak of "torrcd" in test_config_include_folder_order()Nick Mathewson
Bugfix on 0265ced02b7a652c5941cb2c14ee1e0de0b1d90e; bug not in any released Tor.
2017-08-04Remove usage of the PATH_MAX variablecypherpunks
GNU Hurd does not define the PATH_MAX variable. Using the variable on this platform results in compilation errors. Closes #23098.
2017-05-19Whoops; I broke check-spaces.Nick Mathewson
2017-05-19Try another approach to fixing the bug in the #1922 test.Nick Mathewson
This isn't elegant, but it seems to be the best way around all of the issues involved in escaping and quoting that we've gotten into over the years.
2017-05-19Try to fix windows config/include_path_syntax testNick Mathewson
It was trying to do %include "foo\", which won't work. It has to be %include "foo\\".
2017-05-19tt_* macros can "goto done;" so define any freeable things before them.Nick Mathewson
2017-05-18Add support for %include funcionality on torrc #1922Daniel Pinto
config_get_lines is now split into two functions: - config_get_lines which is the same as before we had %include - config_get_lines_include which actually processes %include
2017-05-10Merge remote-tracking branch 'public/my-family-list-fix-4498'Nick Mathewson
2017-05-09config: Remove {Control,DNS,Dir,Socks,Trans,NATD,OR}ListenAddress optionDavid Goulet
Deprecated in 0.2.9.2-alpha, this commits changes it as OBSOLETE() and cleans up the code associated with it. Partially fixes #22060 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-05-09Minor cleanups in test_config.Nick Mathewson
Use a more standard indentation style for the end block; remove redundant if() around tor_free.
2017-05-09Split MyFamily into user-specified version and normalized versionNick Mathewson
This change prevents a no-longer-supported behavior where we change options that would later be written back to torrc with a SAVECONF. Also, use the "Pointer to final pointer" trick to build the normalized list, to avoid special-casing the first element.
2017-04-14MyFamily config string is now a list. #4998Daniel Pinto
2017-03-15Run the copyright update script.Nick Mathewson
2017-01-27client: set IPv6Traffic to on by defaultDaniel Kahn Gillmor
See: https://trac.torproject.org/projects/tor/ticket/21269 https://bugs.debian.org/851798 Closes #21269 Signed-off-by: David Goulet <dgoulet@torproject.org>
2017-01-03Fix unit test failures in response to DNS hijacking.Nick Mathewson
Some DNS NXDOMAIN hijackers hijack truly ridiculous domains, like "invalid-stuff!!" or "1.2.3.4.5". This would provoke unit test failures where we used addresses like that to force tor_addr_lookup() to fail. The fix, for testing, is to mock tor_addr_lookup() with a variant that always fails when it gets a name with a !. Fixes bugs 20862 and 20863.
2016-12-16Merge branch 'prop271_030_v1_squashed'Nick Mathewson
2016-12-12whitespace fixNick Mathewson
2016-12-06Accept non-space whitespace characters in log severity syntax.J. Ryan Stinnett
Adds a test_config_parse_log_severity unit test to verify behavior. Fixes #19965.
2016-11-30Split bridge functions into a new module.Nick Mathewson
This patch is just: * Code movement * Adding headers here and there as needed * Adding a bridges_free_all() with a call to it. It breaks compilation, since the bridge code needed to make exactly 2 calls into entrynodes.c internals. I'll fix those in the next commit.
2016-11-16refactor router_pick_published_address to have another argRoger Dingledine
no change in behavior except fewer log entries in the case where we use a cached result.
2016-10-14Whitespace cleaningNick Mathewson
2016-10-04Allow a unix: address to contain a C-style quoted string.Nick Mathewson
Feature 18753 -- all this to allow spaces.
2016-09-08Placate "make check-spaces"Nick Mathewson
2016-09-08Unit test fix: windows should be able to handle DNSPort just fine.Nick Mathewson
2016-09-07Merge remote-tracking branch 'dgoulet/ticket18693_029_01'Nick Mathewson
2016-09-05Fix BUG warning with stack trace from config/parse_port_config__listenaddressNick Mathewson