]> git.ipfire.org Git - thirdparty/tor.git/commitdiff
Adjust test to allow hyphens too.
authorNick Mathewson <nickm@torproject.org>
Tue, 24 Oct 2017 23:33:38 +0000 (19:33 -0400)
committerNick Mathewson <nickm@torproject.org>
Tue, 24 Oct 2017 23:33:38 +0000 (19:33 -0400)
src/test/test_config.c

index 396f06adff53173f1ea462e9debfdc7c8648a3f5..593d3ca8f2f096290a57160ea4c027f3213447e7 100644 (file)
@@ -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;