зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1696531 - Use a shorter name in 'test_on_directory' from test_unix_domain.js, r=necko-reviewers,valentin
Unix socket names have a fairly short maximum length. Turns out that on Python 3 'mkdtemp' creates directories that have two extra characters as opposed to Python 2. That was enough for us to hit the max length and break this test. Work around the issue by using a shorter base name for the socket (which doesn't make a difference to the test). Depends on D109730 Differential Revision: https://phabricator.services.mozilla.com/D111647
This commit is contained in:
Родитель
b9cf731dc4
Коммит
3cc66430cb
|
@ -217,7 +217,7 @@ function test_name_too_long() {
|
||||||
// Try creating a socket in a directory that doesn't exist.
|
// Try creating a socket in a directory that doesn't exist.
|
||||||
function test_no_directory() {
|
function test_no_directory() {
|
||||||
let socketName = do_get_tempdir();
|
let socketName = do_get_tempdir();
|
||||||
socketName.append("directory-that-does-not-exist");
|
socketName.append("missing");
|
||||||
socketName.append("socket");
|
socketName.append("socket");
|
||||||
|
|
||||||
do_check_throws_nsIException(
|
do_check_throws_nsIException(
|
||||||
|
|
Загрузка…
Ссылка в новой задаче