mirror of
https://github.com/systemd/systemd.git
synced 2024-11-07 01:27:11 +03:00
test-dns-domain: allow old and new libidn2 behaviour (#6749)
The behaviour changed to allow underscores. For now, lets just accept both return values. Fixes #6573.
This commit is contained in:
parent
48fa42d4ef
commit
0fe36dd930
@ -615,7 +615,10 @@ static void test_dns_name_apply_idna_one(const char *s, int expected, const char
|
||||
log_debug("dns_name_apply_idna: \"%s\" → %d/\"%s\" (expected %d/\"%s\")",
|
||||
s, r, strnull(buf), expected, strnull(result));
|
||||
|
||||
assert_se(r == expected);
|
||||
/* Different libidn2 versions are more and less accepting
|
||||
* of underscore-prefixed names. So let's list the lowest
|
||||
* expected return value. */
|
||||
assert_se(r >= expected);
|
||||
if (expected == 1)
|
||||
assert_se(dns_name_equal(buf, result) == 1);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user