]> git.ipfire.org Git - thirdparty/git.git/commit
t/clar: fix compatibility with NonStop
authorPatrick Steinhardt <ps@pks.im>
Wed, 4 Sep 2024 14:16:51 +0000 (16:16 +0200)
committerJunio C Hamano <gitster@pobox.com>
Wed, 4 Sep 2024 15:41:36 +0000 (08:41 -0700)
commitaa57db2822e585b623c21dc5f38fda272f272849
tree2d27f25a618b1d3fa71aa66585e25ddddb1d18e9
parent9b7caa2809cba618f2af702d35b12bc99535f2b9
t/clar: fix compatibility with NonStop

The NonStop platform does not have `mkdtemp()` available, which we rely
on in `build_sandbox_path()`. Fix this issue by using `mktemp()` and
`mkdir()` instead on this platform.

This has been cherry-picked from the upstream pull request at [1].

[1]: https://github.com/clar-test/clar/pull/96

Signed-off-by: Patrick Steinhardt <ps@pks.im>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/unit-tests/clar/clar/sandbox.h