From faaa14a303dabc6309a52cc8e5eba86f9e29ccaf Mon Sep 17 00:00:00 2001 From: eldritch horrors Date: Tue, 28 Apr 2026 12:14:18 +0200 Subject: [PATCH] tests/libutil: disable guessOrInventPath sockets test not very useful, fails in docker and on macos. let's disable it for now. fixes #1113 Change-Id: If83ea11ff7120eb7fb30601096374d167107573c --- tests/unit/libutil/tests.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/unit/libutil/tests.cc b/tests/unit/libutil/tests.cc index df7b7f7cc..34ced9f18 100644 --- a/tests/unit/libutil/tests.cc +++ b/tests/unit/libutil/tests.cc @@ -282,7 +282,11 @@ namespace nix { pipe_read.close(); } - TEST(guessOrInventPath, sockets) { + TEST(guessOrInventPath, DISABLED_sockets) + { + // this test no longer works correctly as a unit test because overly long socket paths + // require a libexec helper to bind/connect. we leave it around for reference; sockets + // are rarely passed to guessOrInventPath (if this happens at all, we haven't checked) Path socketPath = getUnitTestDataPath("guess-or-invent/socket"); createDirs(dirOf(socketPath)); AutoCloseFD socket = createUnixDomainSocket(socketPath, 0666);