diff options
author | Nick Mathewson <nickm@torproject.org> | 2017-10-24 19:33:38 -0400 |
---|---|---|
committer | Nick Mathewson <nickm@torproject.org> | 2017-10-24 19:33:38 -0400 |
commit | 44e8aaa9aa57bf6b9fce1712a8f77e5f9979392c (patch) | |
tree | d5db6e2babb5eb9abbcd15d2dfb17a3083bb4620 /src/test/test_config.c | |
parent | 02cde0d9398c43de3a67133b7982d9df6962fe32 (diff) | |
download | tor-44e8aaa9aa57bf6b9fce1712a8f77e5f9979392c.tar.gz tor-44e8aaa9aa57bf6b9fce1712a8f77e5f9979392c.zip |
Adjust test to allow hyphens too.
Diffstat (limited to 'src/test/test_config.c')
-rw-r--r-- | src/test/test_config.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/test/test_config.c b/src/test/test_config.c index 396f06adff..593d3ca8f2 100644 --- a/src/test/test_config.c +++ b/src/test/test_config.c @@ -4927,10 +4927,14 @@ test_config_check_bridge_distribution_setting_valid(void *arg) { /* If the BridgeDistribution setting was invalid, -1 should be returned. */ static void test_config_check_bridge_distribution_setting_invalid(void *arg) { - int ret = check_bridge_distribution_setting("hyphens-are-not-allowed"); + int ret = check_bridge_distribution_setting("hyphens-are-allowed"); (void)arg; + tt_int_op(ret, OP_EQ, 0); + + ret = check_bridge_distribution_setting("asterisks*are*forbidden"); + tt_int_op(ret, OP_EQ, -1); done: return; |