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:
Andrew Halberstadt 2021-04-14 13:54:26 +00:00
Родитель 5bd8e288d1
Коммит 36cf13128a
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -217,7 +217,7 @@ function test_name_too_long() {
// Try creating a socket in a directory that doesn't exist.
function test_no_directory() {
let socketName = do_get_tempdir();
socketName.append("directory-that-does-not-exist");
socketName.append("missing");
socketName.append("socket");
do_check_throws_nsIException(