]> git.ipfire.org Git - thirdparty/curl.git/commit
tests: respect $TMPDIR when creating unix domain sockets
authorYedaya Katsman <yedaya.ka@gmail.com>
Sun, 17 Dec 2023 20:04:25 +0000 (22:04 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Dec 2023 07:29:58 +0000 (08:29 +0100)
commitad50d8104ca40f5fa9a950c2fe461ef937a7e7f0
tree1125d91f4bc549a184bb2522e7cb002f99afdf4b
parent15b09d93439525b5a4210620dba4e695a5ff3102
tests: respect $TMPDIR when creating unix domain sockets

When running on termux, where $TMPDIR isn't /tmp, running the tests
failed, since the server config tried creating sockets in /tmp, without
checking the temp dir config. Use the TMPDIR variable that makes it find
the correct directory everywhere [0]

[0] https://perldoc.perl.org/File::Temp#tempfile

Closes #12545
tests/servers.pm