mirror of
https://gitlab.torproject.org/tpo/core/tor.git
synced 2024-11-24 04:13:28 +01:00
Adjust test to allow hyphens too.
This commit is contained in:
parent
02cde0d939
commit
44e8aaa9aa
@ -4927,10 +4927,14 @@ test_config_check_bridge_distribution_setting_valid(void *arg) {
|
|||||||
/* If the BridgeDistribution setting was invalid, -1 should be returned. */
|
/* If the BridgeDistribution setting was invalid, -1 should be returned. */
|
||||||
static void
|
static void
|
||||||
test_config_check_bridge_distribution_setting_invalid(void *arg) {
|
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;
|
(void)arg;
|
||||||
|
|
||||||
|
tt_int_op(ret, OP_EQ, 0);
|
||||||
|
|
||||||
|
ret = check_bridge_distribution_setting("asterisks*are*forbidden");
|
||||||
|
|
||||||
tt_int_op(ret, OP_EQ, -1);
|
tt_int_op(ret, OP_EQ, -1);
|
||||||
done:
|
done:
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user