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
This commit is contained in:
eldritch horrors
2026-04-28 10:52:57 +00:00
parent f8b13b254b
commit faaa14a303
+5 -1
View File
@@ -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);