]> git.ipfire.org Git - thirdparty/libarchive.git/commit
test_utils: fix `canRunCommand` implementation
authorBenoit Pierre <benoit.pierre@gmail.com>
Sat, 7 Jun 2025 22:04:23 +0000 (00:04 +0200)
committerBenoit Pierre <benoit.pierre@gmail.com>
Sat, 7 Jun 2025 22:05:34 +0000 (00:05 +0200)
commitdcf5475661623ef2bc100767822db979456cd1fb
tree571b79e9d041ea16e3d064f509f4c4f8bfe14be4
parent0931c12b7eb43bedefec4cde89e1e7e0b3d25477
test_utils: fix `canRunCommand` implementation

Do not unconditionally cache the result of the first call (and
reused it for subsequent calls). Thankfully, the function is
only called once.
libarchive/test/test_read_set_format.c
test_utils/test_common.h
test_utils/test_main.c