[tor-commits] [tor/release-0.3.2] Adjust test to allow hyphens too.
nickm at torproject.org
nickm at torproject.org
Tue Oct 24 23:37:21 UTC 2017
commit 44e8aaa9aa57bf6b9fce1712a8f77e5f9979392c
Author: Nick Mathewson <nickm at torproject.org>
Date: Tue Oct 24 19:33:38 2017 -0400
Adjust test to allow hyphens too.
---
src/test/test_config.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/src/test/test_config.c b/src/test/test_config.c
index 396f06adf..593d3ca8f 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;
More information about the tor-commits
mailing list